as a substitute vs for preference

as a substitute

for preference

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