Basically, I'm not sure that any one "thing" is the thing that always fails. There are multiple common points of failure and generally speaking, phones are hard to service in any manner these days. I personally would gladly give up water and dust protection, as well as thinness in exchange for ease of serviceability. Unfortunately, that seems to be a relatively uncommon set of preferences (although obviously it's probably much more common in places like Hacker News).
I have had this problem on a regular basis with all of the iPhones I have owned, and the problem has never been that the charge port is dead, but that dust and/or lint has gathered in it.
The solution is very simple: use a tootbrush or similar, preferably something plastic that won't break, BUT NOT ANYTHING METALLIC, to dig out the dirty stuff. Problem solved.