To defeat Metal Sonic, ram into Metal Sonic when he's standing and not on his toes. Controls: arrow keys to move and space bar to jump.
Credit to Sega, NightDestroyer, and MunchJrGames.