You can't fire people based on race, creed, age, or gender, and you can't fire them for not having sex with you. There are laws against those things, those things specifically, and almost exclusively those things.
Except that you will still be _laid off_ for any of those reasons but it would be masqueraded as some other convenient 'official' reason. "The cash is tight", "we are not growing", etc.