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.
You mentioned MagSafe, so I assume you use an iPhone. I have an iPhone 12 mini and the battery life is awful. I love the phone, but I cannot recommend it to power users due to the battery life (the 13 mini should be significantly better, but I cannot confirm).
I’ve owned it for a bit over 2 years and I have 80% battery health, and I need to charge it multiple times per day. The battery is small and due to the form factor / design, it heats up quickly, further degrading the battery, especially if charging >5W.
I suspect this plays into why small flagships are mostly a thing of the past.
I think it’s almost only because of an increasing amount of people using phones as their main multimedia and productivity device, hence the need for larger screens.
Such a shame, because battery aside (which is supposedly better in the 13), it’s still the most enjoyable phone I’ve had in a very long time. The size is extremely convenient for me and I believe iOS works best at this display size; even the home screen on an iPhone Pro Max shows the same amount of information as my Mini and likewise for the status bar (except for the models with a “Dynamic Island”).