As long as you work essentially at one place, don't need to work on the go, don't need to show your work to a customer when meeting in a cafe, and genuinely can use a ton of processing power and storage, a desktop is a clear choice.
I suspect a lot of the movement towards laptops was and is due to the desire to run macOS. It just so happens that Apple desktop computers are either way underpowered or way expensive. An MBP is basically the sanest way to run macOS. So MBPs tend to become makeshift portable desktops, with external screens, keyboard, mice / trackpads, power bricks, and cooling pads.
If your work processes are not beholden to Apple software, building (or ordering a customized) desktop is a refreshing gulp of power. You suddenly can afford much more, or spend way less.
I'm writing this from a Linux desktop, and I'm quite content with it.