What doctor to see for thrush?

What kind of doctor diagnoses and treats thrush? Would it be an OBGYN or a family doc?