as a substitute for vs as an alternative to

as a substitute for

as an alternative to

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