A misconception is that chess is all memory. If you look at some of the research, it’s learning to remember patterns, not all the moves.
Eg when they tested good chess players on random board positions they were just as good as people that did not play chess.