To be a little more specific: you are sacrificing the rights of grown women, in service of girls that don’t exist yet. That is a terrible choice.
Also, a country can accomplish your goal by making prenatal sex discernment illegal. It won’t work any better than banning abortion, but it doesn’t have as many downsides. If you’re really worried about selective abortion, it’s probably a better choice.