It is super difficult to actually do that when tax laws are national but corporations are global.
When a corporation is large enough to be able to move around in the world they can start shopping around for the most advantageous place to set up shop.