Volkswagen is perhaps the greatest counter-example. The union in Germany converted every layoff initiative in whole or in part (more often in whole) into partial retirements, backfill stops, reduced working hours, compensation freezes.
And the experience of the VFX industry is probably the best example of what would happen to a heavily unionized software driven industry.
Edit: can't reply
> are you arguing that it’s better to just straight up fire people
Nope, but there is a real risk that what arises is labor immobility and blocking new entrants.
I don't know about the US, but I spent 4.5 months trying to get a new job here in the EU as a senior dev. Everyone tells me that was quick.
We're already doing that without uniuons. Older folk can't afford to retire and new grads cannot get a leg in to start their careers. we're talking something like a quarter of new grads who cannot get any job in their field out of college.