The Nexus 6 (2014) can still run a version of android with security patches:
https://wiki.lineageos.org/devices/shamu/Google no longer offers security patches directly, but since you control the phone sufficiently to install your own OS, the community can come together and keep security updates flowing. You could do it yourself if you wanted.
Apple devices make this sort of community maintainership effectively impossible.
I know this means practically nothing since only nerds can actually install a third-party ROM, so for the general populace only the "default" security patch window matters, but for the hacker news crowd it seems like it might be a meaningful difference.