Honestly, they're pretty interchangeable, but let me try to use them in some sentences.
"Dogs are friendlier when compared with cats." or "Dogs are friendlier when compared to cats." Yea- no real difference there. Maybe someone can come up with a better difference :s