Now an interesting thing about these two opposing goals is that psychologists have got names for this!
Generally speaking, when you're prioritizing seeking challenge, we like to call those "approach" strategies. And when you're trying to do something like avoid looking incompetent in front of other people, well, we're not very imaginative so we named this "avoidance strategies"