IMO, New>Used>Refurb.
If one is considering Second Hand market, then the apple products are good. But not for android.
A new budget phones ofc. lasts longer than a used Flagship from android. And may perform better too.
And trend which I have seen from past years, A android phone worth 50k will last the same time as a phone worth 15K. High-ends though may last longer. But still, I prefer buying a 12-13k phone, use it for 3-3.5 years until it starts lagging, battery starts draining fast and some other errors and then throw it. I bought a samsung galaxy S4 in 2013, lasted me till 2015. Then bought a cheap Mi phone, lasted me till 2018 so ultimately lasted me the same time. So its better to buy 15k phone, then ditch after 2.5-3 years. U get both features on budget.
But if one is willing for apple, then He can rest assured for 5-6 years. I have seen people using iPhone 7 till today, without any problems. Even my friend sold his iPhone 6s for 10k. last year.