My iPhone 4 was like the Nokia of iPhones. Mine lasted forever and I think it was my longest lasting one. I had it for 5 years, I knew people who had it until 3G was being phased out and they had to switch.
I always use a case on every phone and never had a single issue with the 4.
iPhone 13 pro almost exactly 5 years old. Had the battery replaced once under warranty. I feel like all iphones these days are built like tanks. The waterproofing helps a ton.