To answer your two questions, Yes, and Yes. In your cases, sex was part of the equation. As soon as you say "only a male" or "only a female" you open the door as sexist.
So can I construe this nomination as being motivated by sexism?
It seems that Laura Bush, Ruth Bader Ginsburg, and GWB himself insisted upon only hiring a female for this position.