Certainly, it has been found that height appears to influence career success, at least in men. Whether that's because people respond to taller people with more respect, or taller people are more self-confident, or taller people are more intelligent, or taller people have interests that lead them more often to lucrative industries, or whatever else, you can acknowledge the possibility that height differences contribute to the gender pay gap.
Of course there is a connection. Why am I in the job I'm in right now? It seems to me my brain plays a very large part in that (as does chance, as may other factors). But it is surely my brain (intelligence, interests, personality) that determined my career choice as much as or more than anything else.
I don't have the brains to be a medical doctor. That's why I'm not a medical doctor. I don't have the interest in teaching secondary students mathematics. That's why I'm not a secondary school mathematics teacher. I don't have the personality to flog consumer items, which is why I'm not a salesman. I'm a data analyst because I had the interest and talent to do it, and by chance my original degree and interest (psychology) had a large component of statistical analysis.
So, if (as seemed obvious to me, but apparently not to you or Toni or laughing dog), brains play a large role in career outcomes, surely brain differences between two groups would also affect career outcomes.
Your question is answerable, but it's not straightforward. We either need to largely ignore the first half of it, or deal with an embedded premise that neurological differences actually are relevant to the discussion on gender pay gap. We also need to set aside a likelihood that the question was asked with the intention of pointing out contradiction rather than genuinely seeking an answer.
Well, yes, I believe it would be contradictory to believe in male-female brain differences, but then imagine that none of those differences contribute to career outcome differences. In fact, I find that impossible to believe.
Toni's answer went the route of identifying a cause of the gender pay gap and stating disbelief that differences in brain structure account for it. It answers the question, and does so in an entertaining way.
No. Toni's answer identified one possible brain-state that might contribute to a gender pay gap difference (men's attitudes to women). It doesn't even speak to
brain differences between men and women. It ignores the dozens of other ways brain differences might contribute to the gender pay gap (e.g. the very large and documented interest differences between men and women).
The answer did not entertain me, but there's no accounting for taste.