defeat one's own ends vs try to be too smart

defeat one's own ends

try to be too smart

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