Native speakers, too, get confused. Compare to = you say two things are the same. E.g., Stop comparing me to Tom. I am not like him. Compare with = you analyze how two things are the same and how they are different. E.g., When I compare you with Mona, I like Mona better.