Linux also tends to be quite a bit worse for battery life than Windows.
With a manual stock distro installation maybe, as the defaults are very conservative. But just install the "tlp" package (the laptop project) and the situation flips. At least that's my experience at work based on Dell Latitude laptops and Thinkpads T before. My battery life is way above my Windows using colleagues, and my fans are mostly off (unless big compilation or test runs) instead of mostly on. Of course it's very likely due to the anti-virus, but that's part of the corporate Windows experience nowadays.
Given the appalling and deteriorating state of desktop OS's, it seems unlikely I'll ever use anything other than Linux again. But I don't believe it will ever catch up with either Windows or MacOS on battery life. I just accept that as something I"ll have to live with.
The battery is half the size of the lastest MacBook sure. But much less than half the battery life.
I don't have suspend issues. I am probably lucky.
I wouldn't code on anything else than Linux. But I got myself to enjoy CAD work on my gaming computer running windows. Not that windows is great. It's horrible. But because on windows the GPU and mouse acceleration works flawlessly and feels like an extension of my mind. On Linux somehow it is not as smooth. Mac feels sluggish too. As if there is some lag? But moving the mouse on windows feels just right (and yes I tried same hardware on windows / Linux).
I hate macos. It's buggy and slow. The touchpad is stupidly big. But precision is fantastic. It's an insult to everybody else really. Thinkpad touchpad is an insult of insult. People designing that crap should go to jail for the amount of time they waste on humanity.