come off vs do the trick

come off

verb
  • To have some success; to succeed. 

  • To occur; to take place. 

  • To become detached. 

  • To appear; to seem; to project a certain quality. 

  • To escape or get off (lightly, etc.); to come out of a situation without significant harm. 

do the trick

verb
  • To work; to be successful; to solve a problem; to be sufficient or adequate to fulfill a purpose. 

How often have the words come off and do the trick occurred in a corpus of books? (source: Google Ngram Viewer )