I prefer a desktop just because I build my own systems and I can easily upgrade or change out internals if there is a problem with something.
And I am more comfortable using my own chosen, monitor, mouse & keyboard.
And being able to adjust everything for my ergonomic comfort.
I have a chronic RSI type condition.
We do have a laptop also but I just can't use it for extended times, mainly dd uses it for classes.
But a laptop is handy if you like to move around in the house or outside

or for traveling.
they do make special fan /platforms that you can buy

for the overheating issues
I don't know if certain brands/designs have more problems with that or not.