Divergent titanium-mediated allylations with modulation by nickel or palladium.