The problem with all these phones is that they're kind of built to be disposable. They're just glued together plastic. And even if you can repair the phone or it survives 5 years or so, the vendor is just going to stop supporting the chipset anyways.
Just got a fairphone 4, optimistic but the build quality is shit and they're already rolling out a fairphone 5 now... whatever, I use AOSP. I can't stand samsung anyways with all the crapware they put on stock android.