Indeed. If you equalise pay between men and women, then either (a) you have to equalise pay among all employees for the same work, or (b) you throw merit-based salaries out the window and mandating paying more to one gender than the other for the same work.