Competitive pathways in Pd-catalyzed synthesis of arylphenols