Not so much these days. I just got android 13 on my 3 year old lg v60, and lg isn't even selling phones since 2 years ago. Samsung's get 5 years of security updates now. Pixel's get 4 years security and operating system updates.
Latest Pixels get at least 3 years software updates, and 5 years security updates. After that, you can flash a custom ROM like Lineage that continues to support the phone for usually a few more years.
I have a Pixel 7, wife has a Pixel 7a and two daughters have iPhone 11 and the other daughter has an iPhone 13 Pro. I also have a Samsung A52 5G that is the family spare phone.
As for speed, unless you are gaming on your phone, any phone from the last couple years is more than fast enough for everyday tasks. The Samsung A52 5G that I have I don't see much difference in everyday use vs. the Pixel 7. It use to be quite the spread in performance from high end to midrange devices but that gap has pretty much disappeared for everyday use.
Really, they are all fantastic phones. My wife just got the Pixel 7a, and if I didn't know what it was I would be extremely hard pressed to see much difference between my 7 and her 7a.
I've only had Blackberry or Android. I'm so use to Android, plus I like to tinker with them and Apple doesn't let you tinker. Other than that, I'm not really a fanboi of either platform, they both have their pros and cons.
The biggest issue with Android is picking a manufacturer that is timely with updates, and that will support the phone for more than a year or two. That leaves you with Google or Samsung.