a miss is as good as a mile
Getting close doesn’t mean you won. Missing by a little is still missing, and missing by a lot is still a disaster.
I almost got the pizza, but I still didn’t get the pizza.
I almost passed the test, but I still failed.
I almost got the promotion, but I still got fired.