HN comments might have saved you a ton, too. If you focus only on the missed opportunities and not the things you've done right, you're just making yourself unhappy for no good reason.
Was it flawed thinking, or was it correct thinking that doesn't give correct results 100% of the time because the world is complicated and nothing can give correct results 100% of the time?