[corrected & expanded reply]
If you have a `Doc2Vec` model `d2v_model`, then `d2v_model.docvecs.most_similar()` will return the doc-vector tags (lookup keys) that are most-similar. With those, you can look up those doc-vectors.
And if you've used a `Doc2Vec` mode which trains words, then `d2v_model.wv.most_similar()` can return the words in the model closest to some query doc-vectors or words.
But the model retains no list of the individual words originally in each document – you'd have to do any comparisons based on individual-words-in-one-doc, to individual-words-in-another-doc, separately, in your own code.
- Gordon