This is why unions exist. It should be be seniority or other cut and dry predefined decision process. It's the only fair way of going. That said, I would prefer they choose the person with working wife, vs someone single but that's a bit biased given I'm single. But way I see it, someone married has dual income, someone like me is on the street within a month and credit goes to crap for not being able to pay bills. Life essentially ruined. Probably forced to move and start life over etc. Not that companies even care about that.
What pisses me off is that companies expect 2 weeks notice if you quit, but they won't even give any notice if they lay you off. Pretty much an impromptu meeting followed by building escort. At least they could give people a few months to find another job. (or try)