I’d say having a transfeminine actor dub her is optimum, especially if the character is also a trans woman. If the character isn’t explicitly trans, then the importance of having a trans actor do the dub is lower, but it definitely should be a woman (or transfeminine enby) doing the dub in that scenario.