Interestingly, the book cited in the link (Range by Epstein) talks about "grit" but it also talks about this same point - successful individuals are (generally) not only those who have grit but those who are good at knowing when it's worth persisting with grit and when it's better to give up.