Tough call, but I am going to say PS2, and it is not even that close for me. The library was just absurd. You could go from a JRPG to a weird experimental game to a fighting game in one afternoon, and most of it still holds up today. Jamesclauss nailed it with the classic titles comment.
That said, thefool333 has a point about the PS3. That boot-up sound and the XMB were genuinely cool, and there is something about the PS3 era that feels like the last time consoles had a real personality before everything went flat and menu-driven. I still miss the way the PS3 felt like a piece of hardware with its own vibe, instead of just a launcher.
If I had to pick a modern one, it would be the Switch, purely for how much I actually play it. Handheld mode on the couch while half-watching something is how most of my gaming happens now. But if I could only keep one console forever, PS2 wins on games alone. The backlog on that thing could keep someone busy for a decade.