DNA doesn't change, but it does not necessarily correspond to sex assigned at birth. There are plenty of cisgender women with XY chromosomes, and some cisgender men with XX chromosomes. The Olympics started doing DNA testing back in the 1960s, when it was suspected that East Germany was entering trans male athletes in women's events. They quietly stopped DNA testing when too many cisgender people were getting uncomfortable surprises from their DNA results.