Is a nintendo switch 2 even better than a ps4 genuine question as I don't think its that strong but maybe I am wrong.
Switch 2's CPU wins for having newer technology and it designed to deal with how newer games require more CPU power while PS4 belongs to an era in gaming that CPU power was not needed that much. This is why developers would wanna ditch PS4 and release their games on PS5 and Switch 2 instead of PS4.
PS4, especially PS4 Pro's GPU "beats" Switch 2 in terms of raw power, however Switch 2 having modern technologiest makes it work smart and do better and more job with lower power so Switch 2 beats this round too.
As for RAM, Switch 2 have more RAM but it's slower, but Switch 2 has way faster storage device.
So when I look on the paper PS4 was designed for how gaming was back then that is not satisfactory for today's standards which is why new AAA games won't be released on PS4 and some old online games switching to PS5. As for Switch 2, on paper the whole hardware design is smart but it's also so cheap it's not ok to release today's AAA games on it. I guess Nintendo expected, for example, Capcom would release downgraded version of Resident Evil 9 on it or something and they would bother a lot for optimization to make it fit into new technology of making game render low resolution but it's upscaled smartly for better graphics quality but they would go for streaming route just like what they did with Switch 1 lol. So technically Switch 2 satisfies today's gaming but it doesn't satisfy how much it needs extra work has to be done on it and wasting budget and shit. I would rather release the game on current generation consoles instead of Switch 2 unless Nintendo would pay extra money.
In the end, Switch 2 does beat PS4, even PS4 Pro yet Switch 2 cannot compete against current generation consoles that makes its existence nonsense and making it bad decision to play new games unless you only care about Nintendo games and emulation via breaking the console.