This reminds me of Borges’s short story Pierre Menard, author of the Quijote in which a 20th century author called Pierre Menard steps in the shoes of Cervantes so much so that he actually re-writes Don Quijote, line by line, not because he wants to copy it, but because it makes sense to him at the moment when he writes it. A bit difficult to explain but it’s a must-read!
https://en.m.wikipedia.org/wiki/Pierre_Menard,_Author_of_the...