A big reason of why I switched to iPhone was the fact that Android was so bad at the time. Web browsing was terrible, you needed to install a launcher just for things to run a little bit smooth, and it was an overall very unrefined experience. Something I remember pretty clearly is that when I would always prefer to use my first generation iPod touch to browse the web instead of my android phone, even though my iPod was much older. That made me realize how clean the iOS experience really was.
Today, both are good and it boils down to preference. But here are some pros and cons that I’ve noticed in my experience.
Now, take into consideration the fact that my thoughts on Android stem mainly from having only used 2.2 and 2.3 as daily drivers, but I tried to remain as unbiased as I could. I obviously prefer the iPhone, but that’s also because I have a Mac, iPad, and Apple TV, so it makes more sense for me. Android has gotten immensely better since I last used it but it still seems as though the experience is not as refined as something like iOS due to the fragmentation of the platform.
Hope this answered your question!