IMO if money isn't an object, OS X is a better call when it comes to laptops. If money is tight, going for a Linux box is almost as good. Linux on desktops - as in, not a laptop - has worked pretty much flawlessly for me for >10 years. Not much else to say there. If desktop or server, this shouldn't be a discussion. As far as laptops go, I've just had better experiences with macbooks. Linux on a laptop is still 100%…
You might only experience issues in the latest Intel iteration, while they fix some glitches. But Macs have also had teething problems.
ARMs will also become more an more a great option. For example Chromebook Asus C201 can be run with free software and firmware. And it's great & cheap.
The general rule of thumb is, if there are free drivers, it will work well. If not, it won't. Or at least, you might suffer the effects of planned obsolescence.