The M1 tends to outclass most laptops (primary in single thread based workloads) but they are well down the ladder of performance in comparison to what is possible to put in a desktop form factor.
The mac studio seems to take a nice bite out of those options as well, but its not a laptop either, and depending on workload its quite likely still loses pretty bad if the desktop is tuned to the workload (aka toss a couple 3090's in, or a threadripper/etc for massively parallel stuff, or faster disks, etc).
People who are stuck in the laptop mindset, seem to forget that desktops have a lot of add in card/etc flexibility for workload tuning. Need a 100Gbit network card, just plug it in, need 2T ram pick a motherboard with support/etc.
Think about what this (somewhat randomly picked) motherboard can do, that you can't get from an apple device.
https://www.asus.com/us/Motherboards-Components/Motherboards...