figment of the imagination vs illusion

figment of the imagination

illusion

noun
  • A misapprehension; a belief in something that is in fact not true. 

  • Anything that seems to be something that it is not. 

  • A magician’s trick. 

  • The state of being deceived or misled. 

How often have the words figment of the imagination and illusion occurred in a corpus of books? (source: Google Ngram Viewer )