On the flip side, sometimes people are able to solve a hard problem simply because they weren't tainted into believing it's impossible. [1]
https://en.wikipedia.org/wiki/George_Dantzig#Mathematical_st...
https://en.wikipedia.org/wiki/George_Dantzig#Mathematical_st...
XKCD isn't criticizing the positive mindset of naive-but-gifted researchers; it's criticizing the attitude of experts in one field that their expertise necessarily gives them unique and powerful insights into solving problems in another field.
Perhaps a better counter-anecdote would be all of the mathematicians in the 1950s - 1980s who solved hard program design problems with little or no experience actually programming computers. That really was a counter-example to the XKCD mentality: a bit of mathematics was far more useful than knowing the instruction set of the latest IBM mainframe...
that is, "not at all in the usual case"