You can't quite play all of them, however, there is a growing list that are cross-platform capable. One thing I do love about Xbox is their cross-platform environment they've built/they're building. You can take an Xbox disc and stick it in any Xbox model, you can play a growing list of Xbox games on PC, and you can now stream some games from your Xbox to your phone. They've really done a fantastic job at building and shaping gaming flexibility.
There are even internet rumors going around that Xbox Game Pass could be featured on the Nintendo Switch at some point. Sounds like Microsoft and Nintendo have a good relationship . There are a few Xbox games (Ori and the Will of the Wisps is one example I know) that they've allowed Nintendo to port over to their console. I've heard you can access Xbox Live on a Switch, though I have never tried, but Game Pass would be huge! With Xbox never able to get a foothold on the gaming market in Japan, what a better way to introduce and deliver games to that market but on a Nintendo.
Sorry, that was a long-winded reply to your question. I just got rolling on my typing.