If someone is a victim of the most cruel, hurtful, selfish, damaging fraud that I can possibly imagine, they have a right to know.
Your lack of empathy is genuinely astounding.
Let's stop interfering with violent wife-beaters too, shall we? After all, we wouldn't want to risk the guy getting hurt by the police during his arrest. And think of the poor children missing their daddy while he's locked up in jail!
No bitch, that's a whole different sentence. What the fuck are you talking about.
The essence of your comment is that paternity testing should be avoided because there is no benefit to children and there is potential harm to women. Your focus was not on the mandatory nature of any such testing.
And I believe you understand my analogy in spite of your faux confusion and outrage.
The benefit is to the "father", obviously, in confirming paternity or alerting him of infidelity and fraud. It's either peace of mind or potentially life-changing. The benefit is incalculable.
Your only arguments for why immediately post-birth is a poor time are that it would be convenient for everyone else (including the perpetrator of the fraud) if the victim was unaware and continued to be exploited for some time (how long? when would be a convenient time for the reveal?). That is outrageous.
Which is obviously a crazy line of thinking, but so is "let's force a man to (financially) raise a child that isn't his".
Also, there's a second order effect you're ignoring: a mandated paternity test would change expectant mothers' behavior leading up to the birth. You wouldn't try to dupe someone if you knew you'd be found out. Or, if you weren't sure, you'd more likely be transparent.
The source of risk isn't performing the test, the source of risk is the father getting upset and killing the mother and/or child.
It might actually be that mandatory paternity tests reduces the background rate of familicide. All of the reports that I could find were only after the father had invested considerable time into raising the child as their own. The stakes of the deception are much higher. But if they know the day the baby is born (or earlier), then it's much easier to walk away. It also makes it pointless for the deception to happen in the first place.
The period immediately after birth is one of the most dangerous times for children, and we (should) specifically take action to protect them in a moment where they are at risk and have no agency. A paternity test would increase the risk of harm to the child (either through violence, deprivation, or neglect). We didn't even get to the subject of possible violence against the mother either, which is likely.