What games? The problem is it had maybe 3 quality exclusives release in the first few years.
On launch they had a shit Dead Rising game, a shit Forza Motorsport game, Killer Instinct, and a tech demo with Ryse. They got Titanfall the following March which is great, and Forza Horizon 2. You could count Halo MCC which is a great game now (if you ignore the rampant cheating and exploits which make me stay away from MP) but it released so bad that it's legit one of the worst launches of all time. They also got Sunset Overdrive which is probably the most underrated game of that entire gen for Xbox.
The other problem with the Xbox One generation for Microsoft is that their flagship series were shit that gen. I mentioned MCC being a travesty for years, Halo 5 is better left ignored, Gears went from a 9 to a 6, and Forza Motorsport was mostly stagnant. Forza Horizon was really their only game that flourished on Xbox One IMO.
I might legit be forgetting some of them so I'm legit curious which games you are talking about. I played a ton of Xbox One up until they really started doing the Play Anywhere stuff which is when I started to fall off.
PS4 had better hardware, cheaper hardware, and a better slate of games overall pretty quickly.
I owned one but I'm the only one in my friend group that had one. I bought the Xbox One day 1, the Xbox One S day 1, and the One X day one.