Review the EOL spans between apple and android though. Apple is still releasing security updates for the 5S, a 10 year old handset.
Android devices average 3-4 years before complete end of support. Maybe HN folks will go for alternate firmware, but I'm talking about manufacturer firmware for apples to apples comparison.
That $300 increases to $600+ vs holding on to a ~$500 apple handset when looking at a 5+ years timeframe.