That would go a long way to correct for differences resulting from maternal leave, but there would still be issues such as single people, and especially single men, being favored (since it is rare for them to have a child who they must then take mandatory leave to care for).