Knowledge of What Is in the Wombs
Indeed, Allah has knowledge of the Hour, and sends down the rain, and knows that which is in the wombs. No soul knows what it will earn tomorrow, and no soul knows in what land it will die. Indeed, Allah is Knower, Aware.
31:34
Some people claim that, since science has advanced and now human beings are able to know the sex of the child before it's born (amongst other characteristics), then the assertion that only Allah knows "that which is in the wombs" is scientifically incorrect.
First of all, the verse isn't saying: "You don't know that which is in the wombs," so the argument is a strawman from the get-go. We obviously can in some aspects; anyone from the pre-modern era can cut open a pregnant woman's womb to see the child's sex and similar characteristics, yet this doesn't mean he has "disproved the Quran."
As another example, the same verse says that "no soul will know in what land it will die," so if someone is on his deathbed, does that mean that he has disproved the verse? It also says that "no soul knows what it will earn tomorrow," so if the people in their graves are informed about their eternal fates, does that mean that the verse is factually incorrect? Of course not; Allah is clearly speaking about these few events that He took as examples from a time frame before such circumstances might arise. Today, we may know the sex of the child during the later stages of pregnancy, but not right away after intercourse, so we can't confidently say that we know from which time frame Allah is referring to in the verse.
As for the second point, "knowing what is in the wombs" doesn't only refer to sex or other physical appearances, as it also relates to other aspects of the unseen (such as the age of death, provisions of the child, and whether the child will be a corrupt or righteous person):
Allah puts an angel in charge of the uterus, and the angel says: "O Lord, (it is) semen! O Lord, (it is now) a clot! O Lord, (it is now) a piece of flesh," and then, if Allah wishes to complete its creation, the angel asks: "O Lord, (will it be) a male or a female? A wretched (evil doer) or a blessed (doer of good)? How much will his provisions be? What will his age be?" So all that is written while the creature is still in the mother's womb.
Bukhari 6595
Therefore, if one doesn't know about all of the things mentioned, then it doesn't qualify that the person "knows what is in the womb," since these are the matters of the unseen that the verse alludes to.