In a totally different market. IBM wasn't making Apple I and II equivalents before, or Mac OS equivalents afterwards, and Apple wasn't making mainframes and workstations, and targeting enterprise (in fact, in the 90-96 period that it did try that, it almost tanked).
And the IBM PCs ended dominating the world (market share wise), IBM just didn't have exclusivity on building compatible devices.
But even all of those are beside the point: we're talking about now, not the 80s. At the time the home PC market didn't exist, companies started from scratch. And even enterprise computing (except for the big systems catered by IBM, DEC and co) was the Wild West.
It's like entering the search engine space in 1998 (when there were around 10 competing engines) vs today.
Not really relevant as to whether a small company can beat an incumbent in their own game today. If Google fades eventually it wouldn't be because a new search company beat them at search, but because the industry changed and search is not longer as relevant, ad revenues are marginal, etc, for example.
Except I've heard that argument for my entire life (I'm old). And it never pans out. Then there's a new crop of companies with "this time it's different". You can go back through a couple centuries of US companies and you'll find endless examples.
And yet Apple beat IBM, DEC, HP, etc. which nobody anticipated. The same things you're saying today were said about IBM, etc., in the 70's and 80's.