The mandate about male births is more of a tradition.
https://www.npr.org/2016/02/01/465124337/how-chinas-one-child-policy-led-to-forced-abortions-30-million-bachelors