This is probably going to controversial, but her core problem seems to be an insufficiently high g-factor. She could have contributed to a prominent open source project like the Linux kernel or the C++ compiler. The only barriers to entry are technical competency and ability to focus.
__Hard work has been overly simplified to “If you work hard, you will achieve your dreams.”__
This is true assuming your dreams are calibrated to your capabilities. I presume the problem was her map was not in sync with the territory. Elon Musk can dream about going to Mars. I can't because I simply lack the willpower/drive/intelligence to achieve that.
We need to stop perpetuating the egalitarian fantasy. All men are not created equal.