within the Department of Defense against an individual on the basis of race, color, religion, sex, national origin, gender identity, or sexual orientation, is prohibited. (2) A qualification established or applied regarding eligibility for service in an armed force shall take into account only the ability of an individual to meet— (A) general occupational standards for military service