Of all the console makers I would argue it's Microsoft that is currently struggling the most. The Xbox X has sold less than 20 million units and sales have been dwindling. Unlike Nintendo, Microsoft has no strong differentiator from the Playstation.
Personally, I don't know anyone who has an Xbox. It's either PlayStation for high-end or Switch for more casual gamers (or a 2nd console for PS owners).
It seems that most of the games you can't play on those two systems are available on PC (e.g. Starfield), which anecdotally in my experience is where people tend to play it.
If you want to play Call of Duty 27 or GTA V, buy one of those instead.
The Sega Genesis and SNES had completely different libraries, but both had massive third party support. The N64 and onward has had basically limited third party support in comparison to other platforms. This isn't limited to the genres you mock because you can't play them--it's all genres.
The DS was far weaker than the PSP but had absolutely colossal third party support. The point is, when it comes to consoles you plop down in front of a TV, Nintendo basically burned their bridges 30 years ago. GTA and Call of Duty weren't even around then.
As an addendum, here are the Switch's top selling games: https://en.wikipedia.org/wiki/List_of_best-selling_Nintendo_...
All top 10 are first/second party. And top 20. Only in the top 30 do third parties start to appear.
Compare it to the SNES: https://en.wikipedia.org/wiki/List_of_best-selling_Super_Nin...
Third parties everywhere.
Mistake has more than 1 meaning. Saying the Wii, Wii U, and Switch were consciously different argues against 1. And Wii and Switch sales argue against another.
And Nintendo hasn't recovered since. The Gamecube had a great library, but very little of it was third party, especially compared to the PS2. The Wii was used as a dumping ground by third parties and just got garbage while the 360 and PS3 got major releases. Wii U was completely ignored, and now the Switch's third party content is either last gen ports or heavily downgraded versions of PC games.
Handhelds, of course, were different. The GBA, DS, and 3DS all had pretty large third party support and high quality support at that.
But that one mistake has hurt them for 30 years. They've had huge waves in hardware sales, but software sales by third parties will probably never reach what the SNES and NES had. People sometimes complain about there being yet another Zelda and yet another Mario, but Nintendo's core series are the only thing carrying their platforms.