I’m all for unions, but identifying layoff targets based on these things seems like a sure way for the system to get abused. Single people and people without kids get stuck filling in for people with families already-taking layoffs for them is asking a lot.
Definitely agree on the spirit of your comment though- unionizing is pretty much always a good idea.