It's not really the same logic. If I own 100% of the shares of company A, and I make a profit of $100, I have to pay a tax on that profit. Now I have $75. Now I want to use that money to buy an XBox, so I move that money from my company account to my bank account (again, I own the company, the money is already mine), but I have to pay another "income" tax. This is the "double" tax, there is no "transaction". But lets ignore that, if you could avoid sales tax, wouldn't you? This is how shopping online worked pretty much up until 2016.
IMO, we should just get rid of the corporate tax and simply tax cap gains and dividends more. It would solve the issue of corporations parking money in Ireland and loading up on debt domestically.