The truth is, nobody does.
It's easy to look back and see the lessons you've learned, to be able to do better next time, but next time you always make new mistakes to learn from.
It's not possible to ever do enough research beforehand to execute something perfectly the first time, or even the 100th time. You can always improve.
There's a part of me that takes that knowledge and says, "So why even try? You'll never do it right." or "Just keep researching — once you know everything about it, you'll be able to do it right."
Those are lies.
Knowledge is only power if you use it.
Even the best tools are worthless if you leave them on the shelf.