Beating the last boss you see is not the end of the story, which is where most people get tripped up. The steps break down like this:
1. Clear the stages as normal.
2. Gather all seven Chaos Emeralds. Doing so unlocks the extra zone, Nonaggression, where you play as Super Sonic.
There you take on Super Gemerl alongside Eggman. It is a genuinely tough fight, but it is beatable if you stay patient and keep your focus rather than rushing in.