Pixel (google) phones tend to get updates sooner and for a longer period of time over 3rd party androids.
Dunno, Samsung have really upped their game recently at least on security updates – I don’t doubt full Android updates are going to take longer than Google/Pixel phones.
Also to note: if you get a phone through a deal with your carrier, updates might take a little longer. My phone has some Orange crap on it, and updates are definitely a bit slower. My previous phone I bought off Amazon, and my next phone will be a straight purchase too.