I mean... yes discrimination doesn't feel nice... but it's not as if people who come to Germany where forced to do so by the germans. I'm not from Germany, but the vibes in some of the high-muslim density parts of Germany I've been to have likewise felt unwelcome, unsafe and hostile (towards me as a scandinavian).
So it feel a bit more complicated than "germans are racist, BAD". Anecdotally I've heard that it's hard for any other nationality to do business in germany, simply because they prefer to do business with other germans. It's their country, we just need to accept those cultural differences, and their right to do as they please in their own country.
There's plenty of countries whose laws or attitudes I don't agree with, and that I just don't visit or have any ambition of staying in. China, Burkina Faso, Somalia and Chad are a few examples.