I think Apple's pricing only works because the resale is so strong. I've never lost as much money on phones as when I was buying Android flagships. When I can go sell my two year old iPhone 7 Plus for $400, it's a lot easier to stomach the purchase price of an iPhone XS. Not that I'm going to do that this year, mind you, but still.
Apple has really curated their position as the premium choice, and I commend them for that. They learned relatively quickly (though not without missteps) that people would rather buy last year's (or the year before!) flagship at a discount than a brand new budget model. Saves R&D by milking the older model for another couple years, makes a bunch more customers happy, it's really a brilliant strategy.