I have used all three operating systems at one point or another as my daily driver and my opinion is that they all have their strengths and weaknesses.
Linux is great for allowing you to customize and tailor things exactly as you want it, and is quite nice for C++ and C development. Biggest downside is that you have to compile almost everything (pro or con) and Linux support is almost always an afterthought in many applications. Generally if there is a Linux version, it has bugs and/or is not as well supported, though there are exceptions.
MacOS is great for mobile development on iOS (though it is the only way to do it, so...) and great for developing C/C++ while also having greater OS support with major applications. It also has a nice flow and generally is very stable. The biggest downside is that you are locked into the MacOS ecosystem and sometimes MacOS has specific oddities due to how their libraries are compared to Linux or Windows, which can be more predictable due to their open nature.
Windows is great for almost everything, but I would argue for statically compiled languages like C and C++, it is much more painful to develop for. What Windows has going for it though is great support for almost all applications, the "it just works" factor is higher than MacOS and WAY higher than Linux. You might find an application that mostly works on MacOS or Linux, but on Windows, it generally works like it is supposed to out of the box. It also has the best support for games and game development, as the majority of game players are on Windows. The biggest downside is Windows is kinda heavy for an OS (though it has gotten better with Windows 10, not sure on 11). I'm not a fan of the Windows specific C/C++ libraries, which can cause some issues if you are doing OS related stuff, but admittedly if you are not programming in C/C++ then you're unlikely to notice.
Of the three, I have consistently returned to Windows. The factor that it just works for the majority of the applications I need to run and use, as well as for games I want to play, are big draws. MacOS and Linux are great too though, especially for non-game development work.