It's very much horses for courses.
Unless you want to use it "on the move", a laptop involves several compromises. It's almost certainly a much slower processor, the monitor is a lot smaller, and the keyboard is fiddly.
I use a laptop at the "second home", where there is a docking station with a proper keyboard and mouse, and the screen is "sort of reasonable". The same laptop goes on trips with me, so is versatile.
But at home, the desktop has a comfortable chair to go with it, a much larger monitor, a very good keyboard and mouse, and is very much faster than the laptop.
Of course, if the funds will run to both...