Thanks Zak, for the disappointing news.
Wow, Ash lost a match and seemingly doesn't get it in the following episodes due to the titles. I knew it would be impossible to win. Treecko VS Hariyama is like impossible.
What I am thinking that will occur is that once Ash gets his Corphish, he can go back to Dewford and get a rematch, or like Zak said, he'll participate in an event and get the badge as thanks.