Answer
Discrimination can still persist in a competitive market due to different marginal product levels.
Work Step by Step
Since workers would be paid equal to the labor of their marginal product, male workers might produce more (increasing their marginal product) than female workers. Thus, this is how there can still be discrimination in a competitive market.