Having a union isn't going to change this. If most of the voting members are "new CS grads bring churned out", you'll have the same dynamics inside the union.
It’s one of the reasons we see layoffs during a time of record profits. It’s easy to turn humans out to boost the profit margin and the stock value.