Which is Harder: Heavy or Rocket Devastators?

I always seem to struggle with Heavy Devastators, even with the right weapons. They just seem to lock onto you and riddle you with bullets. You can dive out of the way of a Rocket Devastator’s rockets by diving, but half the time a Heavy’s machine gun seems unavoidable. If you want to explain your reason why Rockets are harder, be my guest, as I’m wanting to hear your opinion