I switched from a pixel to a moto edge for the desktop feature, and though the camera is noticeably worse, the desktop mode is nice to have.
Its called Motorola Ready For, and it has actually been a bit nicer than Samsung's Dex for a little few years, though the terrible name (and using the same name for an application to display your phone apps on your computer [Windows only of course]) doesn't help.
I've been trying it for a bit, and there are so many things that are still rough around the edges, though not surprising given the niche. Firefox is a terrible experience, websites look exactly like they do on a phone even when stretched out to a landscape view and using desktop mode, but it doesn't matter. Password autofill doesn't work in FF either. Chrome is unfortunately a lot better in that regard.
But other features of ready mode are nice. The ability to have two audio sources playing simultaneously (vs stock android only letting one video/audio play at a time) is very nice. The launcher when starting up to quickly get into some apps, or the desktop mode can be handy.
Mostly I use Moonlight to stream apps from my desktop to a TV, though the 3rd party dongles are usually pretty crappy and break after not too long.
I'm looking forward to seeing what Google does for the stock AOSP images. Right now it's just mirroring the screen, though if we could get more features like Ready For has, then that would be great. The ultimate goal would have to have GrapheneOS with the desktop mode really, though. Of course, GrapheneOS also started doing android auto as soon as I'd switched away too.
Though, Android has nice mobile apps, I wonder if a mobile Linux OS wouldn't be a better way to approach it. Never tried the ones that are out now.