I haven't seen any clear information on what Khelif's problem actually is. The IBA statement on their website says they didn't test Khelif for testosterone and instead performed another recognised test which remains confidential. So everything else that is being discussed re: specific DSD conditions, chromosomes, Caster Semenya etc is just speculation, we don't know. All we know is that she failed an eligibility test of some kind. (I am also wary of assigning sex or genetics to people based on appearance because appearances are often wrong).
In my opinion intersex conditions should probably be a disqualifying criteria for elite sports, so if Khelif has this she should not be allowed to box competitively anymore. This sounds cruel, perhaps, but the reality is there are many disabilities, medical conditions etc which disqualify people from doing certain things. If Khelif is not strong enough to compete with men, and too strong to compete with women, there is no mainstream sports category in which they can compete safely without endangering themselves or others.
I don't doubt that Khelif was raised as a girl and believes she is a girl (there are childhood photos circulating), but given how overrepresented intersex people are in sports, there are definitely coaches who scout athletes with these conditions on purpose, especially in developing countries. This is probably a Dora Ratjen-type situation: an old-fashioned type of sports cheating, which countries like the USA or the UK don't have to do because they have advanced pharma instead. (Most top athletes are doping one way or another, but that's another conversation.)