I have had many Dells that have been great with FreeBSD and with Linux. You do have to do your research though.
Frankly, I wouldn't expect any touchscreen to work with Linux. That's not a Dell issue though.
Interestingly, the touch screen of the 2-in-1 worked really well! I often relied on the touch screen to do light web browsing when the trackpad was acting up.
The XPS I bought in 2018 has a Wacom digitiser for touch/pen and I believe those are very well supported.
A clean install of Ubuntu and the touchscreen and all pen features worked perfectly and never had a hiccup since.