Depends on what you're using the phone for. Personally, my usage isn't very demanding, so having a phone that's going to have security updates and a replaceable battery will probably let me use the phone for 5+ years.
I probably won't keep the phone for 10 years, but it means I can upgrade on my schedule, not just because some company decided for me.