It can be if you run linux and throttle the chips. Even my older G14 last a long time, as the AMD SoCs are great, it can run fanless throttled down, and it just has a straight up bigger battery than razor thin Macs.
But again, it’s just not configured this way in most laptops, which sacrifice battery for everything else because, well, OEMs are idiots.