The Greeks and Romans were likely as brutal.
Don’t want a kid? Just “expose it” by abandoning it to die or be picked up and purposely crippled or worse.
All ancient societies had a problem with infant mortality, and with the mothers dying in labor. The Carthaginians and Phoenicians were unique in this creepy practice of sacrificing their own children to some blood-hungry deity. OTOH, we see a big test for Abraham who’s told to sacrifice his son Isaac just to see if he’s truly obedient, and then told to stop.