At which stage of meiosis does the genetic constitution of gametes is finally decided

1. Metaphase-I 2. Anaphase-II
3. Metaphase-ll 4. Anaphase-I