On the role of density inhomogeneity and local anisotropy in the fate of spherical collapse