The studies done so far indicate that it is closer in structure to the side of gender identity rather than birth sex. So a mtf brain more closely resembles a CIS female brain than a CIS male brain. For ftm, that is reversed.
In effect, the brain is developed normally but in a different direction from the physical sex.