I never got the steam deck comparison.
It's like comparing different leagues, classes or whatever and then additionally apples and oranges.
Yes, first off, of course the steam deck is far more powerful than the switch. For the price and used hardware it better be! That's a moot point basically, I could also argue that a >2k€ mobile should be more powerful than a <200€ one. Also, the switch literally is a mobile while the steam deck more of a PC anyhow, which again is a more powerful platform. I'm not going into energy usage though.
The other point is that the steam deck is a pc with a console frontend and that the switch is a console. One is a locked down system (with hard specs) and the other - Well, a pc.
That makes neither better or worse but it depends on your requirements. I love my PCs but sometimes I just want stuff to work and be one packaged experience. And thats where consoles shine. Example: I've played steredenn on switch but never got the controls to work on steam deck, although it's a Linux version even.
The point being. It's fine to like the steam deck over the switch. But it's not comparable however crappy the switch might be.