The following reaction has the product as shown, as the major product $S_N2'$(allylic nucleophilic substitution) path is followed:
However, if instead of using $\ce{H3C-O-}$, we use $\ce{H3C-OH}$ we get (both $S_N2'$ and $S_N2$ paths are followed):
It seems to me that when we use $\ce{H3C-O-}$, only $S_N2'$ reaction takes place but on using $\ce{H3C-OH}$, both $S_N2'$ and $S_N2$ are equally taking place. What is the reason?