We all want to make good choices. We try to make decisions that take us in a good direction and lead to better things, but along the way, we make mistakes. Sometimes that’s the best thing that can happen.
History is littered with "happy accidents" -- well-intentioned decisions that failed to achieve their objective but succeeded in producing surprisingly positive, though unintended, outcomes.
Penicillin was famously discovered by accident, as was insulin, the X-ray, the pacemaker, the Post-it note, and fireworks. Each was the product of a mistake that led to an entirely unintentional breakthrough discovery.