And they have been rather uncompetitive lately.
Nowadays, the only thing they do better than others is their own silicon but since it's not that relevant for phones anymore they need to do better. The worst is that because of greed they find a way to purposefully limit the phone usefulness to artificially force higher price poing (RAM/storage).
Just as an example, you gotta be really into the ecosystem to choose an iPhone 15 over a Pixel 8. But I think most stick with Apple because it is complicated to switch and all the software "investment" is lost.
Previously as an Apple "believer" I was against cross-platform apps but now I feel like a transferable licence is almost a requirement. It is very worth the small performance cost.