Nintendo sold 101+ million Wii consoles and 150+ million DS consoles.A Switch is a console and is a handheld. Technology got better. It's a hybrid. It can work as a console just as it can work as a handheld. That's like saying the PS5 was killed because now you can play it remotely so therefore the console market is dead.
Switch will probably top out at about 150 total.
You can argue over the semantics of it but they killed and entire 100 million console market in order for the switch to be successful.