LG is abandoned. Samsung is one of the best vendor about long term major/security update that's beyond Google. https://9to5google.com/2022/02/09/pixel-6-three-android-upda...
The Samsung line are the only carrier (full purchased, unlocked, not leased though) provided phones I've used. Pixel and iPhone bought from source directly.