Compare is to put things next to each other and look for similarities.
Contrast is to put things next to each other and look for differences.
- It is a good idea to compare the prices on one website to those on another.
- They are both romantic authors but having contrasting writing styles.