Compare to is used to liken two things or to put them in the same category. You should use compare to when you intend to simply assert that two things are alike. Use compare to to illustrate that two things are similar.
- The economy can be compared to a stallion charging at the gate.
- I compare getting comments from students in class to pulling teeth.
- She compared her work for women's rights to Susan B. Anthony's campaign for women's suffrage.