At work I use Gnome and at home I use MacOS - I am used to both environments. I am a C++ developer and spend most of my time in a terminal. Of course, it took some time over the years to have everything customized for my needs, but at the moment I feel equally productive on both.
However, if I had to choose one, I will likely stick with Mac though. The performance of the new Apple Silicon chips is amazing and it's going to get even better.