be a substitute vs do duty

be a substitute

do duty

How often have the words be a substitute and do duty occurred in a corpus of books? (source: Google Ngram Viewer )