I think that with the trade-in program, I've spent a similar amount between 2016 and now upgrading to flagship OnePlus phones every year. The software updates have been good. For example, OnePlus 8 series were the first non-Google smartphones to receive Android 13. They were about 2 years old at the time.
The bathtub curve of reliability applies to smartphones as it does to most electronics. The "infant mortality" failures can be covered by manufacturer warranty pretty well. But the "wear out" failures go up a lot in electronics after the first few years in my experience (with both Apple and other brands). In case of Apple, battery degradation and a bunch of build quality "-gates" come to mind.
So there is value in upgrading your smartphone every year or two, ecology aside. I could do that with OnePlus phones but it might have been much too expensive for me to do it with iPhones.
I am also not aware of any battery-gate degradation issues. Around a thousand charge cycles, every 3 years maybe, I pay to get the battery replaced at Apple or Best Buy.
It’s important to remember that those were largely media creations, not something which affected a large number people or were problems specific to iPhones. There were so many angry tirades about throttling on degraded batteries which never mentioned that everyone does it because the alternative is the device suddenly shutting off.
If you bought a mid-end Android each ear for the past year, you'd spend half the cash and you would always have up-to-date software.
The hard truth about iPhones is that they are way overpriced, and are a Veblen good.
Think about it for a second: Apple sells it's phones for a higher price than their fully featured and also overpriced laptops.
I loved the freedom and flexibility of Androids but in the end the software lifecycles and the hardware have just fallen too far behind.
Also, I have zero interest in upgrading phones or researching them. I want something that has a reputation of being a workhorse for years and stays out of my way.
I know this because of many years of experience, and I am using an iPhone XS from 2018 right now.
My wife used an iPhone 6 from 2014 to 2018, and we still use it as a baby monitor, I used an iPhone 6S Plus from 2015 to 2020, and my daughter uses a 2020 iPhone SE.
My mom uses an iPhone XR from 2018. The point is, I have lots of data on iPhone (and MacBook Air) longevity, so I trust them.
On the other hand, I still have no idea if any Android phone vendor offers software updates for more than a couple years, much less if the phone actually continues to work well. I had a string of bad experiences between Nexus and Xperia devices from 2011 to 2015, so I learned my lesson then.
The amortized cost for me is much less than any alternative Android.