Mechanisms and origins of switchable chemoselectivity of Ni-catalyzed C(aryl)-O and C(acyl)-O activation of aryl esters with phosphine ligands.