Dunno where you got this ludicrous idea that 'armies from a dozen other universes were pouring in' but they didn't have the battle won, Stark swiped the infinity stones away from Thanos seconds before Thanos would have used them to destroy the fucking universe after he beat Captain Karen ragged...