self-defeating
🇺🇸
/ˌself dɪˈfiːtɪŋ/
🇬🇧
/ˌself dɪˈfiːtɪŋ/
Something that makes a situation worse instead of better, or prevents you from achieving your goal.
His constant need to prove himself was self-defeating, as it only made others doubt him more.