It depends on what features you value.Mine is approaching 4 years. Huawei Mate 20 Pro. It's been decent to be fair - far better than my experiences with older Samsung phones.
I just had a quick glance at comparing specs on mine with the Pixel 6 and it seems to me that phone tech progress is slowing down. There's not enough difference between mine and even the Pixel 6 Pro to make me want to upgrade. Usually my current handset is lagging and doing weird stuff, forcing an upgrade, but not just yet. Maybe another year.
It depends on what features you value.
The pixel 6 pro will muller the mate in terms of speed, smoothness and especially photo and video quality. A spec sheet does not tell the full story.