Long story short: Gender selection without using in vitro fertilization (IVF) has little strong science behind it. The only true way to select the sex of your baby is by undergoing IVF with preimplantation genetic testing (PGT). IVF is a reproductive treatment in which eggs are fertilized by sperm in a laboratory.