I keep hearing Jordan Peterson say that women are attracted to men with the capacity to generate and share wealth, while also saying that IQ is the single best predictor of wealth, so it seems that a corollary of that would be that IQ is the most attractive trait in a man.

However, looking back at my time in uni doing a maths degree, my cohort seemed to be having the lowest amount of success with women--the tall guys did alright though--despite being at the top for IQ, with the situation getting more bleak as the difficulty of the courses people chose increased (as in people who chose to focus on easier subjects like statistics and applied maths fared better than those who chose to focus on abstract mathematics like Galois theory and topology). And then looking at myself, I scored in the 99.9th percentile for a standardized maths test in school, yet would still be a virgin if it weren't for prostitution being legal where I live.

So does IQ just not confer any positive benefits to attractiveness, or were any positive benefits mitigated by maths students being on the far end of the interest in things vs people spectrum, often encroaching on the territory of autism (I'm referring to Simon Baron-Cohen's empathising-systemizing theory)? Or could it be as simple as that women prefer men of commensurate intelligence to themselves, thereby leaving the men on the far right tail of the distribution vying for a comparitively tiny number of women due to men having a higher mean IQ and larger standard deviation?

EDIT: I've seen a bunch of comments disavowing the validity of IQ or talking about multiple forms of intelligence. Sorry, but psychometric g, for which IQ is a proxy, is the most statistically robust construct in all of psychology, has strong positive correlations with many important life outcomes and is about as hereditary and stable as height. It's also a single variable, with different parts of an IQ test (eg vocabulary, working memory capacity, processing speed, spatial rotations etc) having very high correlations with eachother. You could maybe break intelligence down into verbal and non-verbal intelligence (still highly correlated with eachother, though less so as intelligence increases due to Spearman's law of diminishing returns), however other supposed forms of "intelligence" are either highly correlated with g (eg spatial and mathematical intelligence) or have no relation to the conventional understanding of the term and are better regarded as mere talents (eg interpersonal and bodily-kinesthetic "intelligence").