I had a Lenovo P15 before my current M1Pro. That thing was a machine. I got roughly the same battery life through day of dev work, got to choose my OS, it did everything perfectly. Only thing it lacked on imo was looks.
So yeah, in my experience, there are other laptops out there that are as good.
I used to work on the similar P51, definitely a nice device for Unix work. I also keep a maxed-out T460s around as a handy little notebook for programming and photo editing. Not as powerful as the P51, but the design feels like a refinement of the "manila envelope" Macbook Airs. Lenovo hardware is starting to find it's footing again, though there's still a number of really Lovecraftian devices they made in the early 2010s (T440p, anyone? How about an X240?).
Thanks - my experience with laptop workstations has pretty much universally been huge bulky machines with horrific cooling that is heavily throttled and the battery only lasts 2-4 hours under load. My M1 Mac lasts all day even when compiling which is night and day.
The OS option isn't a problem for me - I'm content running windows/Mac regardles!
So yeah, in my experience, there are other laptops out there that are as good.