If they have identical specs then nothing besides form factor. A pc is a pc. Probably cost of the screen increases the laptop cost, and maybe increases power draw, but idk.
I like headless because I can just access it from my laptop but you can do that with the laptop server too if you know the ip or setup port forwarding, but my router doesn't permit it.