I think we should be a bit cautious about this one particular incident until more information is available. Many are saying that the defeated woman's opponent, Algerian Imane Khelif, is not a "trans woman" at all, but in fact a biological female with a condition causing higher-than-normal concentrations of androgens (male sex hormones). The president of the International Boxing Association claimed that Khelif had XY chromosomes, which may be true, but it is also disputed.
en.wikipedia.org
I completely oppose "trans women" (i.e. men who want to be women) competing in women's sport, but I think that opponents of modern left wing gender ideology need to choose their battles wisely, and arguably this is not one. Transgender ideology does not exist in Algeria, and there is no legal recognition of "gender transition". A "trans woman" would not be looked favourably upon in that country, much less be asked to join the national Olympic team.
So Khelif is either a biological female as supporters are claiming, or has an intersex condition.
You might recall the case in the '00s of Caster Semenya, the South African middle distance runner, who became something of a global media spectacle at that time, in a bid to compete in the 2009 athletics world championship (not even the Olympics)
en.wikipedia.org
Semenya has an intersex condition with XY chromosomes, but female external sex characteristics and was raised as a girl. Despite having testosterone levels typical of a male, Semenya was allowed to compete in the women's event in many competitions subsequent to the 2009 world championships, including three Olympic Games (2012, 2016, 2020). However, middle-distance running is not the same as boxing, and there is less danger to opponents in middle distance running posed by the greater strength of one competitor, and that strength also confers less of an advantage.