Both of them came at a time when NASA was more concerned about the "diversity" of their crews than the safety of the missions they were undertaking.
Diversity had nothing to do with the Challenger disaster. That was caused by administrators making technical decisions.