Giving birth to someone does not give you the right to murder them.
Obviously not.
It just highlights how much of a problem teenagers can be that the only solution canaanites could find was "I guess sometimes killing them is ok?" It's not. Throwing teenagers into the wilderness to pillage and rape is also quite obviously not on, nor is abusing them in a blizzard in Utah.
My point is that for thousands of years, we've been failing to find a reasonable way to deal with the problem of teenagers.