I don't think apple is looking to beat android in marketshare, but instead in profits. They are mostly not interested in selling cheaper commodities, and instead work hard for premium differentiation (and maximal value capture of the whole ecosystem around premium smartphones with services and peripherals).
Besides, if they did win smartphone marketshare too hard, they risk regulation on the amount of control they enjoy of their platforms, which might harm their profits.
As alluded to elsewhere, Google doesn’t care about Android being profitable. They only care that it is widely used so they can continue to deliver ads and harvest data.
Besides, if they did win smartphone marketshare too hard, they risk regulation on the amount of control they enjoy of their platforms, which might harm their profits.