I don’t suppose it matters on the birth certificate, but it does seem a little foolish to just pretend sex has no relationship to health. You don’t need to force anything on a child, but that is medically necessary information regardless of what gender, if any, the child identifies with.