Compare with & to
From 'Vocabulary' part of The ABC Of Plain Words by Sir E Gowers (1951)

There is a difference between compare to and compare with; the first is to liken one thing to another; the second is to note the resemblances and differences between two things. Thus:

Shall I compare thee to a Summer's day?
If we compare the speaker's notes with the report of his speech in The Times ...