Edit: I've owned almost 10 Google android devices: nexus 5, 6, 5x, pixel 1, 2, 3, 6 pro, and a couple tablets
Of those, maybe 2 of them were stable after 2 years. Who cares if Google "promises OS updates" for 5 years if the updates are so unstable that the phone is unusable.
Meanwhile, it's not uncommon for people to be using 3+ year old iphones with no complaints. My iphone 11 (~4 years old) feels much snappier than my pixel 6 pro (~2 years old).