The woman in your situation with the greater title is being paid no more than your friend with a lower one, or women with the same title are being underpaid. If and when the man is promoted to the same title as the woman with the greater one they will be paid more than the woman despite doing “equivalent work”.
Unless your friend is required to do the work above their title it seems like a non issue and literally your friend is the one with the advantage…