It’s also true that IQ is both real and highly heritable. The military uses what’s essentially an IQ test to screen out the bottom 15% or so of the population: https://www.psychologytoday.com/us/blog/after-service/201801.... The military has found that people with aptitude test scores below the cutoff can’t be trained to competently perform any job in the military.
IQ is also highly heritable: https://pmc.ncbi.nlm.nih.gov/articles/PMC5985927.
IQ correlates most strongly with socioeconomic class, with members of the same ethnic group scoring higher over the decades as that ethnic group as a whole becomes wealthier.
Ah, yes, the IQ test; the universal, unbiased gauge of intellect across all cultures.
Genetic heritability, which is a subset of heritability, does not generally mean what people think it means, though. To the extent IQ can be attributed genetically to parents, it does not imply a "compounding" effect where smart people continuously have smarter kids and dumb people have dumber kids. This can understood by analogy to other personal traits like eyesight, height, weight, hair color, etc. which vary within a range across generations with occasional unpredictable outliers. This is why folks who do test for intelligence, have to test each person individually and not just rely on bloodline tracking.