In the vast majority of cases, the startup will not succeed, and the investor will lose their investment, while the founder will make $100,000 less than the engineer and lose credibility as a founder in the process. The engineer loses nothing other than the potential future income they might have received if the company had succeeded, and they will likely just find another job.