According to the Random House Unabridged Dictionary of American English,
The traditional rule about which preposition to use after ''compare'' states that compare should be followed by ''to'' when it points out likenesses or similarities between two apparently dissimilar persons or things:
She compared his handwriting to knotted string.
''Compare'' should be followed by ''with'' when it points out similarities or differences between two entities of the same general class:
The critic compared the paintings in the exhibit with magazine photographs.
Does this rule have to do with the meanings of the prepositions themselves? Otherwise, how did the differentiation come about?
If handwriting does compare 'to' knotted string, even if not as bad, that comparison goes beyond considering that the handwriting might be bad, it states just that.
– Yosef Baskin Dec 10 '19 at 14:54