You learn well, grasshopper.
Indeed, whatever your occupation you will balance imperfect choices of what you will do, who you will work with, and the outcome of your efforts. Humility and acceptance of your limits go far in preserving sanity, whether you lead a multibillion dollar corporation, write software with a team, or sweep the floors alone after hours. You don't have total control, but that doesn't mean you don't have some control; do what you can (sometimes that means doing your job well, and sometimes that means leaving your job for another).