Hi Kroskris,
Welcome to the Forum.
My dictionary says that compare followed by to often expresses similarities, and that with often implies a greater degree of formal analysis. That sounds about right to me.
However, it goes on to note that in current usage, to and with are often...