I recently decided to switch from Android to iOS primarily because of the significantly longer software support.
Samsung has also improved a lot recently (at least as far as the update promises are concerned), but iOS still has the longest-reaching support.
Also, Apple is a bit less of a data octopus than Google…