I have the 4k XPS 15” from 3 years ago running Ubuntu, which I have been very happy with.
The biggest issue I have is poor support when using Linux for the 4k display. So many niggles and problems with the Retina display and I have tried a variety of different workarounds, and I still have quite a few unresolved issues. I personally wished I had bought the 1024p display. Currently I am fighting with trying to upscale Wine and there is no simple solution - meanwhile the fonts and everything for the application I am trying to run are so tiny as to be unusable (Aside: the Wine Display Configuration text size setting does not help).
Apart from that, the XPS has been a solid performer running Linux with no noticeable software issues. The firmware is still getting patches through Ubuntu which is impressive.
The one persistent niggle with the XPS range is that there is a “coil whine”, which sounds exactly like a tinny speaker tuned to the CPU usage. It isn’t loud but if a noticeable annoying noise drives you insane then be very careful before buying an XPS. I would hope they have fixed the problem, but it had been an ongoing problem with previous models for years, so caveat emptor.
Linux working out of the box is a must have for me, however. So far a few things here and there like configuring my mouse and "wake from sleep" while on an external monitor. Would prefer not to need to fiddle with these basics but so far I can deal with it.
1080p 13": 169 dpi
4K 13": 338 dpi
Laser printer: 600 dpi
Photo printer: 1200 dpi
Laser printers use 600 dpi because most readers who appreciate typographic design and sharp fonts do not consider 169 dpi to be "perfectly sharp" even with all subpixel cleartype tricks enabled. Knuth's Computer Modern font that TeX/LaTeX use by default looks terrible below about 300dpi because its sharp serifs cannot be rendered correctly. I can't stand my 227 dpi MacBook Air M1 because the fonts on my Surface Pro (267 dpi) are so much sharper, especially because Big Sur eliminated subpixel cleartype tricks so fonts are now worse on Mac screens than they were when the 2012 Retina MBP came out. But a 338 dpi 4K display on a Dell XPS 13 is a noticeable improvement over the 267 dpi Surface Pro.