I mean, hardware is nothing compared to the OS.. I can switch to any other Mac and it would take me a couple hours to be comfortable. That would be it.
If I'm switching to a Dell XPS, I don't really care about the hardware at that point. It's all about software.
I tried doing that a couple months ago when my MBP went bad as Apple doesn't know how to build a keyboard anymore. Bought an XPS 13". I think it has great hardware. Couldn't switch away from macOS. I'd use XPS with macOS over the shitty Macbook Pro any day.