I was once turned down a secondment to the Hong Kong Police force because they were not accepting any more women. I was terribly upset about it but there was nothing that I could do.
But to be offered a job because I am female and not necessarily the most suitable applicant would be insulting - but I have no intention of finding a job so it won't happen.