A minister has hit out at those spreading hate against the first woman to lead Australia's army, saying she was the most qualified candidate.