The pen is often compared ____ a sword... Will it be "to" or "with"

Pls tell me when to use to and when to use with ? What will be the above answer ?

2 answers

I prefer with. "To" indicates a direction: "She went to the store," or "upon": "He applied varnish to the surface."
It's to☺