- Apple is a platform company because they charge people money for their platform
- That defines a standard of "A platform company is a company that creates a platform and trades it for something of value [in Apple's case money]"
- Google creates a platform [Android]
- The only difference is Google's "something of value" is attention. They then trade that attention for money in the case of Ads
So Google does compete with iOS. The only difference is they're deriving value differently (one directly from payment the other from Ads).
But if someone buys an iPhone they aren't seeing the Ads Google's trying to deliver through Android and if someone buys an Android phone Apple isn't getting that person's money. So they're most certainly in competition
(On your last point to say Google doesn't care what OS the user is running doesn't track for me. Apple has demonstrated their intention to dominate the iPhone "App Ad" market and muscle others out of it if they can)