be hoist with one's own petard vs try to be too smart

be hoist with one's own petard

try to be too smart

How often have the words be hoist with one's own petard and try to be too smart occurred in a corpus of books? (source: Google Ngram Viewer )