FWIW, you are legally required to pay your taxes, and there are going to be serious consequences to your life and your family's life if you don't; the moral decisions in that situation are much more difficult. However, Apple obviously is not and never was legally required to build a centralized App Store... hell: it isn't even clear that that it is legal that they did it, and these arguments are still playing out in court!
And, certainly, no one is legally required to put copious effort into defending the thing Apple did which directly and predictably leads to these results (which are not new or surprising). Even if Apple is, now, legally required to remove this app (and I don't know if they even are: many companies are just cowing to political, not legal, pressure), they carefully and intentionally set themselves up to be in that position.