"with" and "to" have a wide variety of different uses in English. I don't understand why you would want to single out these two words for contrast and comparison. However, if you have a specific context in mind then it may make sense.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.