In the European union, where funds are easily transferred between subsidiaries in different countries, tax competition by individual member states can have particularly harmful effects on the public economy as a whole.
In a typical multinational corp tax avoidance scheme, a coproration has a subsidiary A in e.g. Ireland and has a very small corporate tax rate on profits. Then another country, e.g. Netherlands gives subsidiary B a tax break on some commodity, typically an IP licensing scheme of some kind.
Subsidiary A licenses some IP from B, and the licensing fees are conveninently 100% of the profits of A, so they're not making a profit in Ireland and don't have to pay tax there. Subsidiary B gets all their profits from IP licensing that pays hardly any tax in the Netherlands.
Add a few subsiriaries and loan arrangements between them (free movement of capital in Europe is one of the fundamental pillars of the EU), and no taxes get paid and all of the profits get funneled into a tax haven such as Bahamas or Caymans.
So while you'd think that tax competition would just be a fair competition when talking about individual countries, at EU scale it ends up being a race to the bottom where a few select countries (Ireland, Netherlands, Luxemburg) get a nominal fee from the multinationals but all European states end up losing billions in tax revenue.
And then there's also the corruption aspect. These tax deals aren't a gesture of goodwill.
This is not about tax competition, this is about abusing tax loop holes and trying to avoid paying any tax at all. E.g. before 2015 Amazon declared their entire European income in Luxembourg and payed about 1 percent of tax on that money. This way other (much bigger) European countries like Germany and France lost billions.
(The US avoids much inter-state tax competition through federal taxes)
The people paying for your product are able to buy it because they live in a country that provides for them, through added value, jobs, health care, infrastructure and so on. If you want to profit from these people's buying power, then you have to conform to that country's rules of business, that's all.
Apple is very happy to make huge sells of iPhones thoughout France, Germany, Italy and such countries, siphoning money from their people to Ireland, without ever contributing as much into the local economy. They employ a few hundred people in Apple stores and hotlines, but compared to their profit it is just ridiculous.
Apple subsidiaries in random countries selling phones don't pay taxes because they don't make any profit. They don't make any profit because they're "charged" an amount for the phones (and IP, branding etc) that exactly equals the sales.
"people paying for your product are able to buy it because they live in a country that provides for them": wow... really? I know governments love considering people's money as theirs, people's lives as theirs, but that's a bit far stretched maybe? I'm not any country's liability. I'm a free man in a free society. Aren't you?
Here's a business producing commerce-enabling technology in an extremely valuable manner, hence the profit. Consumers exchanged their earned, post-tax savings for those things and paid additional tax along the way. To act like governments were short-changed is preposterous. It's "you didn't build that" taken to the extreme, and borderline extortion.
The two are vastly different, and the first is tolerated only by the latter because it's the best way we know to bring order and organization to trade.