As long as they're reasonably replaceable, I don't see it as a big issue for longevity. I'd rather have a bigger battery (less plastic casing), wireless charging w/ magsafe, better water resistance, etc.
If the battery is toast 3 years in, I can just replace it, which I've done on other devices (including my last Pixel). It's not much more inconvenient than taking a car in for an oil change. Besides, on my 18 month old phone, capacity is at 95%. These days batteries often last as long as you'll need them.
I see the much bigger longevity issue on the software side. Many phones (especially budget ones) only get 1 major OS upgrade and very infrequent security upgrades.