I would strongly recommend the latter. The former is playing the lottery. Even if you win, stock appreciation in big tech over 10 years beats the startup stock. Not to mention, you won't be at a no name startup for years to find out whether you won the lottery.
If one doesn't care about the financial PoV, there are good enough reasons to go to a mid stage startup as well (clearer purpose, structure, product market fit etc.) over an early stage one.