N-Phenoxyamides as Multitasking Reagents: Base-Controlled Selective Construction of Benzofurans or Dihydrobenzofuro[2,3-d]oxazoles.