Pixel 8. No bloatware (except the Google bloat of course, but you can get rid of this easily), plus Google has now promised 7 years of updates - which is more than the iPhone. This would increase the resale value of the phone, and even if you don't want to sell it, you could always give it to a family member or something after say 3-4 years of use, and they'd still get many years of official updates remaining. This is great for reducing e-waste whilst still maintaining a good security posture.
And if you're privacy conscious, you could ditch the Google ecosystem completely and load GrapheneOS on it, and GrapheneOS is simple amazing in terms of privacy and security, and arguably has better battery life too (thanks to no Google bloatware running on it).
I would also suggest looking into GrapheneOS if you're looking for something new. I've been running it for 6 months on my pixel 6, and I have really enjoyed it. Apps just work, you can still use Google Play services in a sandbox, it's smooth and gets good battery life. The only downside that I have run across is the lack of Android auto support, but everything else just works
Yeah Pixel for similar reasons. Even when I paid for an expensive Samsung phone all the unremovable crap they'd loaded on made it feel like I was the product rather than the customer.