Let's err on the side that doesn't result in children being forced to marry pedophiles. Yes, the line can be subjective, but the vast majority of cases of child marriage are underage women being forced to marry men over the age of majority.
People not being able to marry at 17 doesn't stop them from waiting a year to be married. That isn't going to stop them from being patient, and won't stop them from having a child.