If I had to pick between IQ and pre-existing wealth, I would choose wealth.
Having a high IQ still requires you to rely on luck by rolling the dice at investing (knowing to buy bitcoin is more gambling than intelligence), squeaking past super selective all-or-nothing societal gateways like Ivy League admissions, FAANG interviews, YCombinator, etc. against very stacked odds, tenacity whenever life randomly and inevitably decides to punch you in the gut, and tremendous sacrifices in terms of hard work, time, MORALITY (screwing people over and fighting hard to prevent others who are actively working against you from doing the same to you), and personal health.
I think the fact that you can solve puzzles really well on a test doesn't really lend itself well to money making at all. There's FAR too much of a chance/luck component to making money to attribute it to IQ alone. Any time I've ever made money, I came back thinking wow, I was very lucky -- even though everyone is still biased towards themselves in terms of their own personal attributes or qualities (intelligence, hard work, savviness, hustling, etc.) when they make money, I can still recognize that yes, buying and selling crypto at the right time was almost entirely luck -- so was teaching myself how to code when I was 8 years old growing up in a rural area where everyone else thought it was a waste of time. Hard work is a necessary but not sufficient condition to make money -- same applies to IQ. Often you'll find people who had the exact same amount of "talent" or worked just as hard doing exactly the same things as someone who has a lot of money but don't have anything to show for it. Right place, right time.
Meanwhile, having money handed to you on a silver plate by virtue of your birth family means being able to accomplish all of the above without doing or sacrificing anything at all, and you even still have a free pass from society to still have an ego about it. Even worse, many people somehow see having money as a moral characteristic while selectively ignoring the very often immoral cost of acquisition.