do duty vs step into someone's shoes

do duty

step into someone's shoes

How often have the words do duty and step into someone's shoes occurred in a corpus of books? (source: Google Ngram Viewer )