When Justice Depends on Gender