But something like an iPhone 6 definitely is a competitor against a brand new $200 Android device (and may receive security updates for longer).
The options available nowadays are pretty good with updates (from Android One initiative) and hardware similar to (in a few cases, significantly better than) last gen flagships.
I just set them up today, but I have to say, the $130 price point of the Moto E4 is pretty enticing given it seems responsive and has a fairly large screen (and if you are fine with Verizon, you can get it for $70 no contract[4]). The H6 seems like the one aimed the most to be a flagship phone. Fairly polished, and with a rear fingerprint sensor (all or almost all the rest have a fingerprint sensor, it's just on the front).
Edit: Whoops, the Verizon link and price is for the Moto E4, while what I purchased was a Moto E4 Plus, which Verizon has for $110[5]).
1: https://www.amazon.com/HTC-32GB-UNLOCKED-Version-GunMetal/dp...
2: https://www.amazon.com/Honor-6X-Unlocked-Smartphone-Silver/d...
3: https://www.amazon.com/XT1771-Finger-International-Version-D...
4: https://www.verizonwireless.com/prepaid/smartphones/moto-e4-...
5: https://www.verizonwireless.com/prepaid/smartphones/moto-e4-...