Of course it is. And there is nothing illegal about discrimination in itself; if discrimination was illegal, than you would have to hire anyone who applied for a job, allow anyone to rent a house no matter their financial situation, and sell alcohol to minors. All of that is discriminating for various reasons. It's discriminating based on gender, race, age, orientation in a few states, and a few other things that is protected against.