If we are talking overall experience then has to be the GC to Wii and Wii U / 3DS to Switch. In both instances it felt like Nintendo understood the assignment from the very beginning after previous failures. The hardware was slick, the games were great and overall they were marketing successes, the latter being an important factor in defining a console's legacy.
I think the Wii era, while flawed, redefined what the gaming genre can be. It created the sort of buzz that nothing ever did previously or probably will, in the sense that it transcended the normal "gaming" audience. This coming from the solid GC, which is an awesome console, but at the time was perceived as Nintendo losing grip of the home console market. The Wii was able to recapture that "Nintendo magic", even for a brief time, and to me it was super exciting to see as I always had a soft spot for this company. At the same time, games like Mario Galaxy and Twilight Princess were just damn good games that appealed to the normal Nintendo fan, who at the time felt that the GC swayed away from the successful formulas. After a while though Nintendo did lose sight with their gaming strategy, streamlining and simplifying every franchise they have, and after the first 2 years the Wii just could not keep up with the PS3 or 360 where developers started pouring games there. Still going from the worst sold home console to the best selling at the time says something.
The Switch jump for me might even be more impressive. I think the Wii U era was an even tougher time for Nintendo. As poor as the gamecube sold, there was no feeling that Nintendo lost sight of its ability to make great games. The Wii U era though was confusing. there were good games sure, but Mario 3D world, no Zelda and frankly the worst conceived mainline Nintendo hardware to date made the Wii U an unattractive console. The Switch on the other hand is so impressive. The hardware is so slick and is the culmination of every good idea Nintendo had, including the Wii U's tablet form, and you can see it. The games came back so hard, with open world design games. Not only did they show they can do it good, but they showed they can do it better than everyone else with BoTW. All their franchises got a breath of fresh air and it showed. This wasn't Nintendo using a "gimmick" to get some hype, this felt like the golden age of Nintendo again. For me their best ever console of all time.
If we are talking from a technical standpoint though, then I think the N64 is the only logical answer, maybe possibly 3DS to Switch (but that would discount the fact the the Switch is a home console).