My Framework 13 has the Ryzen 5 AI 340 Chip, and I get 5-6 hours of work on a charge. The Macbooks definitely beat this, and their hardware has other benefits (silent if you opt for the Air, bigger/better trackpad, etc) but for me, being able to run Linux is worth the trade-off by far.
I like that on Linux (GNOME) I have all the functionality I need out of the box without having to install a paid app for window snapping (I heard they fixed this recently?) or to make my mouse buttons work. I also find that since I work with containers a lot, developing on Linux removes a lot of friction. I can run docker/containerd natively without having to babysit a VM that likes to eat all my RAM or hang randomly (no docker/rancher desktop layer). Even just having the same coreutils and package managers as I do inside the containers really simplifies things. Our MacOS devs are always struggling with homebrew putting shared libraries weird places that can't be found by the python bindings and this "just works" on Linux.