There are two issues: some manufactures put more smarts in the battery than others. So never run the battery completely dead which some combinations allow. Never charge the battery with other than the OEM charger.
Don't buy the off-brand batteries (which sometimes are counterfeit that look like the real thing) since they sometimes are not safe.
I think the most I could get on board with was the mandating of USB C by the EU. You can have whatever connectors you like so long as you have the USB C. And then of course we can get lost in what "USB C" actually is.
It's also why PC compatibles ever happened at all.
It's also why Apple phones finally have a standard port. Which you admit.
Interoperability is not natural, and IP laws make it trivial for companies to utterly block as we are dealing with today. Interoperability often requires regulation to force companies to allow people to interact with "their" standards.
The government can manage interfaces in a way that enables standardization and interoperability without limiting capabilities.
Even if the EU (a specific government entity) hadn't stepped in over the USB C thing it would have been figured out eventually we just didn't want to wait.
I don't see how you can use AT&T as an example for your point. AT&T was our US government forcing us under threat of state violence to use what technology they deemed was allowed.