What they need is an option to hold your battery at 80%, show 80% as 100%, and then over time as your battery depletes, increase the percentage it charges to. So, for instance, when your battery drops to 95% health/capacity, it charges to 85% to make up for that, so that your battery life is at least consistent over time. And on a phone like the iPhone Pro Max, you could do this without it impacting most people. On smaller phones, it might be nice to get a battery bump before they implement that option.
I think my DJI drone does something similar. It will fly on 0% for a while if you keep forcing the return to home activation off. It will beep at you like crazy with all kinds of warnings but you can force it for a bit. I think by default it only uses a certain percentage of the battery, and I think that's because it needs to keep the peak voltage high enough to power the motors. Kinda like how over time the iPhone can't operate at peak performance during heavy usage spikes.
So if Apple was able to put a battery in the iPhone with a higher capacity rating, they could just mark the charge level in software by default at 80% but display as 100% and then have a deep menu override setting for advanced users, pop up a message about how disabling this may reduce the iPhone battery lifespan, and then disable it for those who just want the most battery life and only use their phone for a year or two. But even for me on my 14 Pro Max, after a year, my battery health is at 88% and I use optimized charging. I imagine after two years it's not going to be great. In past years I don't remember my iPhone battery grinding down this much in a year since I'm on the iPhone Upgrade Program, and I almost exclusively use MagSafe charging which is slower than wired but also might produce more heat? Before this year it was a mix of wired and wireless, and before that it was mostly slower charging wireless 7.5W with some wired mixed in. I will need to start tracking this over time.