drive a hard bargain vs hammer out

drive a hard bargain

verb
  • To negotiate forcefully. 

hammer out

verb
  • To come to (a difficult agreement or settlement) after much arguing and conflict. 

How often have the words drive a hard bargain and hammer out occurred in a corpus of books? (source: Google Ngram Viewer )