If there has been direction to stop selecting white males in order to reach diversity targets it is discriminatory (positive discrimination) and therefore illegal. You cannot lawfully order someone to break the law.
However, it is lawful to prefer one candidate over another on diversity grounds if they otherwise of equal merit. That is called positive action.