IMO, there's an injustice here when things like stepped-up basis result in these gains never being taxed, but that seems like a separate issue from the question of wages vs. profits.
To be explicit, there is a decision tree where a company can decide whether to have wages increase or profit, then decide what to do with the profit, and the rise of stock buybacks vs. dividends is an answer to the second question, not the first.