Apple is objectively behind in the following categories: camera hardware, AI, digital assistant, and UI customization (like being able to put apps/shortcuts anywhere on the screen instead of the next snapped to spot) to name a few. Apple has played catch up for years with things like MMS, multiple cameras, widgets, among others. Apple has been subjectively been behind on things like a more inspired design, more access to file and folder storage like Android, etc.
Apple has always won in terms of security, stability, and device longevity. Apple reinvented the phone and then let the competition dictate features for the next decade and left its users dreaming of the day iPhone would get the latest features, which wouldn't come for years until Apple deemed they had done them "right" and not first. Some see that as a plus, some don't want to wait 4 years for features to make it to the iPhone.
I've used both platforms and each has its strengths and weaknesses. Ecosystems are also not that big of a deal anymore. You can use an Android in a Mac world just fine with everything being cloud-based these days. It's really not that big of a deal. Is it as seamless? No. But it's certainly possible without being crippled by lack of connectivity.
For the record, my whole life runs on the Apple ecosystem, but let's be honest about Apple's shortcomings, because there are many.