QUICK ANSWER
"With" is a form of "with", a preposition which is often translated as "con". "Compare to" is a transitive verb phrase which is often translated as "comparar con". Learn more about the difference between "with" and "compare to" below.
with(
wihth
)A preposition is a word that indicates the relationship between a noun and another word (e.g., He ran through the door.).
a. con
The tide varies with the Moon's position in its orbit.La marea varía con la posición y la órbita de la luna.
6. (despite)
a. con
I think she's held up great with all she's been through!¡Creo que lo llevó genial con todo lo que le pasó!
a. en
My uncle has been working with NASA for nearly 40 years.Mi tío lleva casi 40 años trabajando en la NASA.
compare to(
kuhm
-
pehr
tu
)A transitive verb phrase is a phrase that combines a verb with a preposition or other particle and requires a direct object (e.g., take out the trash.).
a. comparar con
My room is small compared to my brother's room.Mi habitación es pequeña comparada con la habitación de mi hermano.
An intransitive verb phrase is a phrase that combines a verb with a preposition or other particle and does not require a direct object (e.g., Everybody please stand up.).
2. (to match)
a. compararse con
My ex boyfriend was the most amazing man I had ever met. No love can compare to the love we shared.Mi ex novio era el hombre más maravilloso que había conocido. Ningún amor puede compararse con el amor que compartimos.
b. ser en comparación con
Rent is high in this neighborhood compared to others.La renta es alta en este barrio en comparación con los otros.