Effect of spatial inhomogeneities on detonation propagation with yielding confinement