A law saying 18 is minimum marriage age (pretty much all across the world), is simpler to implement that
Marriage OK if (p1>18 && p2 > 18) || (p1>16 && p2 <20) || (p1>17 && p2 <22) ..
Marriage is a civil institution that provides social advantages, and waiting till 18 isn't really a burden for a 16 and 19yo that want to get married, and get those benefits.