In this matchup, Sonic has the edge. His ability to take on Eggman's machines and robots — machinery far more powerful than Iron Man's armor — gives him a serious advantage.
All things considered, Sonic would likely come out on top by a wide margin.