The problem here is not how the US taxes corporations, but rather that there are different corporations involved. A regular citizen can not establish an additional, foreign citizen that "owns" them or "supplies" them with IP (or labor hours, &c) -- this kind of tax management accounting is not possible for citizens.
They're not different unrelated corporations, they're subsidiaries of a parent that is ultimately a US entity.
The citizen has literally upped and moved themselves entirely to a foreign country.
The corporation has just forked a bit of itself elsewhere.
And yet the corporation can't be taxed, but the individual can.