The Switch's mobile chipset was basically as bleeding edge as you could buy at the time. But it was a mobile chipset, so couldn't compete with a PS4 or Xbox.
The main problem is that even if it was cutting edge at the time, they can't or won't upgrade it. Of course iPads, which do upgrade their SoC every year, aren't as good at playing games.