I've been using LineageOS for years, and recently got a Motorola G 5G 2024 as a temporary phone while I addressed some issues with my main phone. I was blown away by the amount of custom bloatware on the thing. It nagged me at least 30 times about various features it wanted to introduce me to. If that's "near stock", then I'm staying away.
I think it was whenever they stopped giving the Moto G series numbers (G5, G7, etc), and just started making them "Moto G (Year)". Official LineageOS support has gotten worse since then, but I don't know if it's because they can't find maintainers or what.