ally oneself with vs prefer

ally oneself with

prefer

verb
  • To present or submit (something) to an authority (now usually in "to prefer charges"). 

  • To be in the habit of choosing something rather than something else; to favor; to like better. 

How often have the words ally oneself with and prefer occurred in a corpus of books? (source: Google Ngram Viewer )