Did you install a specific version of Ubuntu or something? I have a recent XPS 15 that I installed 18.04 on, and I have had a fair number of problems. My USB-C hub (from Dell as well) doesn't work properly for USB pass through. My bluetooth headphones require me to connect, disconnect, and reconnect every single time to work properly. My wifi drivers will randomly disappear from time to time. And I have a scattering of other random issues with it.
Most of these feel like "minor" problems, as I can still work productively with my setup. But I definitely couldn't describe my experience as smooth.
I like the XPS 15 screen size, although for some development on Windows the high resolution means you're squinting at tiny fonts if the program doesn't scale up. Performance wise, it does what I ask it to and only really has an issue with very heavy tasks, which is expected for a laptop of this spec.
I travel a good bit. Hours on planes where i get lots of work done. However for this i find slightly smaller screens than 15" easier to manage.
Something worth noting if you're travelling a lot: the power brick for the HP is smaller and lighter than the Dell's. Considering that you'll have to carry that with you, it should be part of the weight calculation.
Only negatives are that the webcams in an odd place, the speakers are awful, and it's a bit heavy.
The only XPS competitor I considered was various comparable Thinkpad models. They have a very different look and keyboard feel, so it's really down to personal preference or what specific deals you can find. Older but still reliable Thinkpads can be incredibly inexpensive, and are also very easy to modify.
But in general in regards to laptop / computers, there's no one size fits all. It really depends on what your focus is.
I'm shelling out for a Mini Tower soon, including a new Ryzen. Not sure yet if going for the 8 core 3700X or go all in with the 16 core 3950X.
If you like portability, the Dell XPS or something like Razer Blade (Stealth) or MSI GS series might be nice. If you need power, maybe something more in the lines of an XMG Ultra with a desktop CPU fits better.
The trackpad is okay but nothing spectacular, feels worse than a MacBook, the keyboard is okay but slightly mushy.
Small bezels and generally alright design, but that's about it.
I wouldn't prefer it to any random well specced laptop. A price comparison site lists my configuration as costing 1700 euro which is a stupid amount of money if you ask me. My wife's old Zenbook feels about as premium and certainly held up great after 4-5 years.
Buy Lenovo x1