I am the first to criticise Apple for absurd decisions with their newer hardware, and the declining quality of their software. But, 2016 MBP keyboard and touchpad aside, the build quality of Macs is a good step above the best ThinkPad or Dell XPS, and has been for many years.
Apple's machines are far less likely to exhibit issues like coil whine, interference on audio outputs, creaks and squeaks, physically broken connectors, electrical noise on USB bus, unstable network cards, poor battery life or longevity, display flickering, poor display uniformity, backlight bleed etc etc etc.
Dell's XPS range has had massive issues with Killer wireless dropouts, crackling audio jacks, mysterious battery drain, flickering screens, and a bunch of other stuff I can't remember right now.
Lenovo's ThinkPads are consistently equipped with sub-par LCD panels (caveat: I have not tried their OLED models yet). I haven't yet met a ThinkPad that didn't have coil whine coming from either itself or its power adaptor. I haven't yet met a ThinkPad that didn't either have or develop some kind of creaking panel.
Until the last couple of years, Apple was about the only manufacturer that cared about making their laptops near-silent, whereas Dell and Lenovo were content putting in stock standard high-RPM fans and running them conservatively. I still find Apple machines superior in this regard.
These might seem like petty little things, but they are the sorts of things that drive me absolutely nuts over the ownership life of a machine.
I'd also posit that neither the high end ThinkPads, nor Dell's XPS, are actually really any cheaper than Apple's machines when you consider like for like.