I have an easier solution that doesn’t require making a false moral choice.
Give your customers the ability to install their own software or app stores on the hardware that they own and paid for, without requiring a monopolistic walled garden. Of course, companies like Apple would never do this because they are far too greedy.