Apple: Has incentives to patch and update older phones (recurring revenues from AppStore and iCloud), and doesn’t really sell any ads themselves.
Don't fall for Apple PR, they sell you out like everyone else does: https://ads.apple.com/
With the mid range Pixels you get a very polished and high quality Android I'd say.
Don't fall for Apple PR, they sell you out like everyone else does: https://ads.apple.com/