That is not an apt analogy because the switching costs for grocery stores is no where near as high with iOS. If you want the full argument I highly recommend reading the full legal filing.[1]
[1] https://cdn2.unrealengine.com/apple-complaint-734589783.pdf