I think it's a lot more nuanced than that. Should we, as a society, allow companies to lock people into platforms, and discriminate against those who have decided not to fall prey to that lock-in? Especially when avoiding that lock-in (which is often a passive financial/economic choice, not an active rights/freedom one) actually causes social and emotional harm (the whole "green bubble bullying" is a real thing; yes, I think it's dumb too, but what we think is irrelevant).
Personally, I think the answer is "no", we should not allow that sort of thing. Profit is not the most important thing in the world, by far.
Your car analogy falls flat, as is the case with most car analogies. No one would expect to get free service at any garage, and that is unrelated to the topic at hand. You can go to any garage, and they're mostly not model specific; even when they are, there are plenty of third-party alternatives. (And this is why locking down car hardware/software such that only the manufacturer can provide service is a garbage practice that we should legally disallow.)