Motorolla's smartphone average support lifetime is two years, or at least, it was recently. Google (Pixel devices) only recently bumped it up to match Apple's software support terms, which is realistically around seven years.
My ancient iPad Air2 (circa 2014) received its last iPad OS update only 48 days ago. It still works like a champ, except in games, of course. I never had an Android device, and I could say the same. Usually, after 2-3 years, either updates fully stop or make it unusable (see Asus Nexus 7 2012 tablet )