That's not how the law works.
As long as the device creator is absolutely clear to consumers that choosing their platform means that consumers will be buying into a walled garden, it's perfectly legal.
The only way to change that is to change the law, as the EU did.