Switch 1, but through no real fault of Nintendo.
Yes it's got good games. But Nintendo (unintentionally) made a handheld emulation powerhouse that can run a lot of it's previous generation of games. It also (again, unintentionally) allows me to back up my games, ensuring I actually own my purchases. Physical game cartridges actually have the game on the cartridge and aren't tied to their online store.
So far, the handful of Switch 2 games they've released doesn't even come close to making up for the system's shortcomings compared with it's predecessor.