as a substitute for vs in contrast with

as a substitute for

in contrast with

How often have the words as a substitute for and in contrast with occurred in a corpus of books? (source: Google Ngram Viewer )