I would assume that if a person has just died, or is near death, when it comes to organ donation they’d look at the medical records for the donor. And if someone is transgender, it will be pretty obvious because I’m sure that those medical details will be recorded in medical records.
I think this is a non-issue.