New Google Pixels come with 7 years of security updates and 7 major Android updates. With GrapheneOS you generally geht all AOSP updates. https://grapheneos.org/faq#recommended-devices
After that GrapheneOS offers 3 years of harm reduction updates https://grapheneos.org/faq#device-lifetime
New Samsung devices (like the S24) also come with 7 years of security updates + 7 Android Version updates.