I'm not making the argument from a legal perspective, but from a reality perspective, I think that's a very poor analogy to the way operating systems (and "platforms" generally) work.
The very nature of operating systems is that they have much more control than a simple store. For example, if you want to switch from Kroger to Safeway, just go to Safeway. There are almost zero switching costs. I actually was strongly considering switching from Android to iPhone solely to get iMessage access (that's a whole different ball of Apple anti-competitiveness, but I digress...) But in the end, even after buying the iPhone, I decided to give it away as a Christmas gift because I just couldn't stomach how painful switching would be after a decade-plus history on Android: I'd lose all my Android apps, I'd lose all the easiest access to things that live in Google's ecosystem, I'd lose my day-to-day familiarity with my phone, etc. To be clear, I'm not saying that's impossible, but it's just a much higher burden that deciding to go to a different grocery store.
Note the government has often developed special laws for "platform businesses", for example railroads, telecoms, etc., understanding the unique positions these companies are in when it comes to controlling the larger economy. I wish they would regulate operating system platforms in a similar manner.