People typically feel bad about their mistakes because they think in a shortsighted way about the bad outcome and not about the evolutionary process of which mistakes are an integral part.
I once had a ski instructor who had also given lessons to Michael Jordan, the greatest basketball player of all time. Jordan, he told me, reveled in his mistakes, seeing each of them as an opportunity to improve. He understood that mistakes are like those little puzzles that, when you solve them, give you a gem.
Every mistake that you make and learn from will save you from thousands of similar mistakes in the future. #principleoftheday
Think of every decision as a bet with a probability and a reward for being right and a probability and a penalty for being wrong. Normally a winning decision is one with a positive expected value, meaning that the reward times its probability of occurring is greater than the penalty times its probability of occurring, with the best decision being the one with the highest expected value.
Whether a decision is good or bad can change based on how you act after the choice is made.
You can't learn all the lessons beforehand. You learn a lot about what you want in a marriage after getting married. You discover what type of career you enjoy after doing a lot of work. And so it goes in nearly every area of life. In many cases, what you wish you knew ahead of time can only be learned after the decision is made.
So there is nothing left but to pay attention to what you like, continue to iterate, and commit to making the most of each opportunity. There is no perfect decision. Good decisions are made right after the fact.