Of course there is the moral ethical duty to disclose, however not doing is NOT a reason to kill someone.
As for trans panic defense is crazy what is next viable defense if your wife cheats or wants to divorce you. Now it might be a mitigating circumstance. (in some countries if you catch a guy with your wife in bed they give less punishment if you kill them not that there is no punishment)