Sure, but that's not the case with Apple. There are a number of smartphone manufacturers (even 'Android' isn't one category - there are many variants) and there aren't many laws preventing new entries into the market that can be sustained by potentially happy customers.
It's not like governments (which also have a monopoly on legal violence, something no corporation has) or political parties at all.
> It's not like governments (which also have a monopoly on legal violence, something no corporation has) or political parties at all.
Governments sublease the right on legal violence out to corporations -- The government enforces copyright and legal rights for companies like Apple and allows Apple to dictate the terms of how users interact with phones that they purchased, and the government will commit legal violence if those terms are violated.
It's not so simple as to say that government is completely isolated from business. The government seizing 3rd-party repair parts at the border is on behalf of Apple. Apple definitely has agency over ways in which that monopoly on legal violence is wielded. During Apple's lawsuit with Epic, both parties were operating with the understanding that the government would enforce the outcome of that case using (if necessary) legal violence to do so.
These lines are much blurrier than you suppose; there is a reason why the expansion of the DMCA is often called in some circles "felony contempt of business model." You can't let Apple off the hook here when Apple is able to sic the government on people who break their DRM, run emulators, or otherwise bypass technological controls that have been added to Apple devices. Apple is a part of this. The government is not intervening on Apple's behalf without Apple's permission.
Consent is complicated, people often try to define bright lines between "this is a completely fair outcome that is the result of choice" and "this is a coerced outcome" -- and in reality, there aren't bright lines between those scenarios. The market has plenty of ways to coerce outcomes, some of them completely separate from the government (vendor lock-in does not require a monopoly on legitimate violence) and some of them based on leverage of government systems that allow corporations to compel or ban certain consumer behaviors.
It's not like governments (which also have a monopoly on legal violence, something no corporation has) or political parties at all.