If your opponent is much better than you and when you spar/wrestle with him, the record is always 15-0 (I like 15 rounds testing), after 3 years of such sparring/wrestling, he can destroy your self-confidence big time. Can you learn something? May be. But the amount of "self-confidence lose" can be much more than the experience that you may gain.
I don't like the term "invest in lose". If a girl has turned you down all the time, you may lose confidence to date other girls. Some people can get back up after been defeated. Some people cannot. In wrestling, a strong right hand person can change a weak right hand person to be a left hand person. Some people may not like to be forced to change.