An iPhone does not necessarily last longer than an (flagship) Android phone these days, including security updates.