Fetching details from the dictionary...
to lose an argument despite being in the right; to have the right on one's side, yet succumb to another