If one takes away (and i do) the "Apple knows best" and the "newer technology=definitively better", one may begin with the basics
- Is the battery, as are all other batteries of this type, one with finite charge cycles?
Because if it is, keeping it plugged to the charger 24/7
is better, "algorithms" or not.
As to whether algorithms can further improve longivity, tbh, i cannot know.
- Temps (your area's, your home's)
- Humidity
- Use case
They all have a part to play and as such "algorithm" ""results"" are at best indicative.
At best because companies far, far less greedy than Apple cherry pick their results, on top of procuring them in very, but very controlled environments. Ours are not.
Lastly, most folks upgrade so often circa 2020+, the truth is we'll probably never really know.
(you'd need select individuals with multiple identical machines, in multiple real-life scenarios, over prolonged periods of time and so on)
I mean i'm here to ask about it, but.. let's keep it real

As to EVs, not the same. Generally speaking, it's the differential and the way the device copes with its alterations overtime. Moot comparison.