Question: has yoda ever lost a fight?
Answer: Yes, it's true, Yoda did lose that battle. And yes, he went into voluntary exile, believing he had failed. But, the goal of that encounter was for Palpatine to kill Yoda and he failed just like he had previously.