Require diversity in the interview pool, not when making hiring decisions.
e.g. in a male majority profession, for every two male applicants selected to interview, select at least one female applicant. But once the candidate pool is established, pick the best available candidate for the job.