Is it possible the IBA is making this all up, and she didn't take two chromosome tests, both of which indicated she was not XX? Sure, that is possible. Here is the letter the IBA sent to the Olympic committee.
Now, the IBA is not well regarded. So could the IBA be making up the facts set forth in that letter? I guess it could, but why? What is the IBA's incentive to say an Algerian boxer failed the chromosome test? The IBA has a rule that you must be XX to box in the female category. Is that a good rule? Probably not. But that is their rule.
There are multiple issues raised by this topic. But if you want to go down the IBA is bad, Russia is bad, so Imane is definitely XX rabbit hole, go for it. I think the public record evidence on this issue suggests that she is properly classified as "intersex."
This is not a new issue. DSD/intersex issues have been a hot button issue for female sports for decades. There are fairness issues on both sides. And different regulatory bodies handle the issues differently.
With Imane, I think it is clear that she does not fit neatly into a traditional biological male or biological female category. There are millions of people like her throughout the world. Just saying that she was assigned "female at birth" so she is a biological female and that is the end of the inquiry is a simplistic way to handle a complex issue.