Origin of nontopological soliton dark matter: solitosynthesis or phase transition