Well, in my case, I have been using laptops for development for at least ten years. I can easily afford a real powerhouse desktop, but I have deliberately chosen laptops.
Most of the time, I don't need a huge amount of power. I'm not rebuilding the Linux core, every time I compile; usually an app.
For my server work, all I really need, is an FTP connection, a browser, and a text editor.
The reason that I prefer laptops, is that, every now and then, I need to take the show on the road, and it is very convenient to just yank my main device out of the dock, and drop it into a backpack, without worrying about syncing. I tend to do native Apple work, in Swift, using Xcode, so it is important to have a lot of local files. I can't really do the work remotely, on a cloud.
When I was still in my "day job," the company issued me a laptop (because I was a manager, and traveled a lot). I brought a laptop for my own work, because that was all done in "nights and weekends." I often threw my personal laptop in with my work laptop, when I traveled.
Nowadays, I have an M1Max 14-inch MacBook Pro. It is pretty much maxxed. Every bit as powerful as any desktop I've ever used. Xcode is still fairly klunky on it, because the code in Xcode is ... classic. I don't think a Mac Pro would be any real help.
But when I'm docked (which is most of the time), I'm running on an LG Ultrawide (49-inch, 5120 X 1440) monitor. Even the 16-inch can't hold a candle to that, so the 14-inch is better for me.
But that's me, and my workflow. YMMV.