If there are only two things whose price is different, you can say their prices are different.
You probably wouldn't say they "vary".
You probably wouldn't say they vary unless there are a lot of things whose prices you're comparing.
For instance, prices of cars vary.