Scenario A Shareholder: $100,000, Native programmer: $100,000
Scenario B Shareholder: $150,000, Native programmer: $75,000, H1B programmer: $75,000
There are good reasons in a democracy to favor scenario A over scenario B. It just depends on the following premises:
1) the income of non-Americans is irrelevant to American policy;
2) we care more about the income of the median American than the aggregate GDP;
3) we don't not care about the standard deviation of income
Econ 101 or not, these are not unreasonable premises.
Here is an easy way to figure out if something is double taxation: income that counts once for GDP but is taxed more than once. If I make $100,000 in NY as an Illinois resident, and both NY and Illinois tax me on that income without giving me credit for taxes paid in the other jurisdiction, that's double taxation. My income is only counted once in GDP, but is taxed more than once.
Corporate taxes are just the natural consequence of passing money through a distinct legal person (the corporation) in a system that taxes income to legal persons. Say there is a 10% income tax. I make $100,000. I'm taxed 10% on that, leaving $90,000. I give $50,000 to you. You're taxed 10% on that, leaving $45,000. Total income, for the purposes of GDP, is $150,000. Total taxes collected is $15,000, or 10% of GDP. No double taxation!
So why does anyone create corporate entities? To get the benefit of the corporation being a distinct legal person: limited liability. It's symmetric: the corporation is treated as a separate person for liability purposes, and is treated as a separate person for tax purposes.