It's a mix of good and bad. The iPhone is generally very good, and the integration with other Apple products is unmatched.
...but my Android runs Firefox with uBlock Origin. I forget that cookie banners exist until I use my iPad. It also runs two background apps pretty reliably: a GPS logger and Syncthing. It respects my default web browser and music player choices.
Quality is subjective. For my specific needs, I prefer Android. If those things were solved I would have an iPhone.