If you are a developer, macOS just works. No need to fiddle with WSL or "remote" setup, etc. (And I've tested it extensively).

Hence, macOS is my favorite OS. The terminal alone makes it "seamless".

That said, if i wouldn't code i would just use a Chromebook.