be hoist with one's own petard vs defeat one's own ends

be hoist with one's own petard

defeat one's own ends

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