replace vs swap out

replace

verb
  • To supply or substitute an equivalent for 

  • To place again. 

  • To put in a new or different place. 

  • To take over the position or role from. 

  • To take the place of; to be used instead of 

  • To restore to a former place, position, condition, etc.; to put back 

  • To refund; to repay; to pay back 

  • To demolish (a building) and build an updated form of that building in its place. 

swap out

verb
  • To exchange (something) for (something else). (usually followed by with or for) 

  • To transfer (memory contents) into a swap file. 

  • To exchange (something or someone) for an unused (or less-used) equivalent. 

noun
  • Anything that is swapped out for another; an exchange. 

  • A pre-prepared food item used in place of an unfinished food item in order to cut down the overall preparation time during filming. 

How often have the words replace and swap out occurred in a corpus of books? (source: Google Ngram Viewer )