I would agree with you except this is not what the lawsuit is about. It's very clearly about Epic Games ability to sell things without going through Apple in the App Store.
If the lawsuit is about installing any software you want on iOS, then you are right and my analogy is faulty.
If the lawsuit is about installing any software you want on iOS, then you are right and my analogy is faulty.