One point to the XPS: the pixel density of the 4k 13" was absolutely LOVELY. I have never seen a screen so nice.
There is really no comparison overall, though: the Apple laptops blow them (and everything else in that category) out of the water.
The top end iPhones are similarly 2-3 years ahead of the flagship Pixel devices in build quality, too. I tried, really I did.