At low temperature, a fermionic system with perfectly nested Fermi surface orders into a spin-density wave. Upon doping, however, the latter state becomes unstable, and several spatially inhomogeneous phases emerge competing against each other to become the true ground state. We investigate this competition using the anisotropic Hubbard model on a three-dimensional cubic lattice in a weak-coupling regime as a convenient study case. For this model it is known that, at half-filling (one electron per site), the Fermi surface nesting is perfect, and the ground state is the commensurate spin-density wave. Away from the half-filling, various types of spatially inhomogeneous phases, such as phase-separated states and the state with domain walls (“soliton lattice”), emerge. Using the mean-field theory, we evaluate the free energies of these phases to determine which of them could become the true ground state. Our study demonstrates that the free energies of all discussed states are very close to each other. Smallness of these energy differences suggests that, for a real material, numerous factors, unaccounted by the model, may arbitrary shift the relative stability of the competing phases. We further argue that purely theoretical prediction of a structure of inhomogeneous phase in a particular doped system is unreliable.