

If your passport has the gender designation X, or if you have changed your gender, the Ministry of Foreign Affairs advises contacting the American embassy before traveling for guidance on how to proceed.
Meanwhile in Finland, the advisory notes that if the gender on an applicant’s passport differs from the gender confirmed at birth, U.S. authorities may deny entry. It’s recommended to check the entry requirements with U.S. authorities in advance.
Nobody ever likes this answer, but it’s the truth.