I am allergic to sulfa and I can take Hydroclorathyiazide (HCTZ).
I don't take it every day though... just when I really need it. I asked my cardiologist about it and he said most people that are allergic to sulfa can tolerate hctz.
Consult with your physician first of course, but for me, it is ok.