Re: Yes, Google sucks, but...
Gotta +1 this for Sony who've done a commendable job. Extra bonus points for their Open Device program for custom ROMs.
I've had an Xperia Z (4.3 through 5.0.1), a Z3 (from 5.0.1 through 6.01; Google's OpenGL requirement scuppered the Nougat update) and a Z Ultra (4.4? through 5.1.1). They all seen at least two years' updates, some into their third year. That's three major Android "releases" per handset. Sadly, each release also came with yet more mandatory Google apps :(
The Z3 Nougat update was killed by Qualcom refusing updated OpenGL drivers. Qualcom tends to EOL their chip support packages very aggressively and that often kills updates for OEM.