I also have a lower-spec'ed 2020 XPS 13 laptop (8GB, core I-10) that works perfectly across the board (except for the fingerprint scanner, which I wouldn't use anyway.)
I love the hardware on both. Absolutely love it -- more than my Macbook Air; no sharp edge where I rest my wrists, touch screen, phenomenal screen (4k, which is higher than Retina, or 1080p, which gives better battery life) etc. The 2-in-1 has a taller screen shape, so you can fit more lines in your coding windows.
If you care about camera, get the laptop. It's also a little bit cheaper -- I got it for about $950 from Costco. The only thing I don't like about the laptop is that the screen doesn't tilt all the way back. The keyboard is better on the laptop instead of the 2-in-1 as well -- more depth of travel, and the Delete key is in the right place instead of offset by the fingerprint/power sensor as on the 2-in-1.
I love the new Dell XPS 13 and think both the 2-in-1 and the laptop are better pieces of hardware than the Macbook Air, and I prefer the new Kubuntu 19.04 over Mac OSX as well. (I don't have a MBP so can't compare to the Pro.)
I think this is personal taste, but I just don't love the build as much, the trackpad, and ubuntu is acting pretty flaky. The camera and wireless chipsets are not immediately working right.
There just doesn't seem to be a perfect solution.