It will be fudged. The IOC will simply declare that Khalif is female, as per the passport. They will have a huge swell of support from all the LGBTQ++ factions that have basically suppressed any debate around this topic over the years.
It may even become common knowledge that Khalif is XY, but after some of the comments I have read recently on twitter and my own Facebook post, even that will be misconstrued as a woman with a DSD, rather than a man with a DSD, and EVEN THEN I would predict that many will be swayed by emotional stories of oppression of the LGBT community and gender non conforming women in Algeria and the wider world.
Until it is very plainly made clear that Khalif is a man, that will be the direction the commentary goes over the next few months, I predict.
Watching the matches this evening, I was really struck by the quality of the last two compared to Khalif's match. The boxing was obviously another level of skill and talent. Khalif can just barge through that with superior strength and size and noone seems to notice the huge difference.
I can guarantee that noone else I know will have watched all three matches. If they had, they might have noticed it too.