Friends, most likely. The two have only ever shared the screen in sports and fighting games — the Mario & Sonic Olympic titles and Super Smash Bros. — none of which involve much character interaction or actual story.
But both are heroes at heart, and heroes in crossover fiction tend to team up rather than trade blows for long. If Nintendo and Sega ever wrote them into a proper narrative, the odds favour an alliance.