The Baby Digi Egg hatches based on the experience values you feed it. Get both Holy Exp and Dark Exp to 100 or above and it will hatch — into Sunmon in Dusk, or Moonmon in Dawn.
The version determines the outcome, so the same egg produces different Digimon depending on whether you are playing the Dusk or Dawn release. That is the whole mechanic rather than a hidden variable.
Raising both experience tracks to the threshold takes a while, so it is worth planning which of the two you want before you start feeding it.