On my ryzen laptop, i have to manually ensure that Linux is setting the right power settings. Once i do that, my 5950HS laptop from 2022 is completely competitive with my work MacBook M2. Louder and hotter at full tilt, but it also has a better GPU (even with the onboard Nvidia turned off) and i can get ~6 hours of web dev out of it if I'm not constantly churning tons of files.

I would try it with Windows for a better comparison, or get into the weeds of getting Linux to handle the ryzen platform power settings better.

With Ubuntu properly managing fans and temps and clocks, I'll take it over the Mac 10/10 times.