I've typically found phone batteries last 4-5 years. Though maybe the battery management features with newer models help: I don't entirely trust battery health monitoring apps, but the same apps that showed a measurable decline in my Pixel 2's battery by this point (almost 2 years old) are showing essentially nothing for my s21. I do have all fast charging turned off and the charging set to stop at 85%, and have done so since I got the phone (I've maybe turned fast charging on on 5 specific occasions, but always turn it off after use - it's certainly not needed most of the time, so why add thermal stress?).
Software updates vary immensely between manufacturers and devices. I'm not up to date with what Moto do currently, but this always used to be a weak point of theirs.