It depends on the therapist's general wisdom.
I'd prefer to see someone who hasn't struggled with my type of issues, only if they are humble enough to understand the limits of their ability to understand me. They have to be willing to put their "expertise" aside and to be eager to learn about me from the first source - from me..and to be genuinely interested in understanding me as a human being..
If they don't have this type of humility, then I'd rather go with the "messed up" one, who, at least, can relate to my experience. I'd do it fully knowing that they their counter-transference reactions could harm me. Since I don't believe anyone can heal themselves completely, I wouldn't require that a T would need to have done "their work". That work never gets "done"..
But my answer is purely hypothetical. I have no desire to try therapy again. I've had my share of "messed up" therapists and I also don't believe in the wisdom and humility of the so-called "healthy" ones ..