I think you may have to weight the risks (as with any medication) and try it out to see if it works for you.

Everyone is different. I don't know if my experience will help inform your decision, as you are considering it for very different reasons. I tried Yaz for about 6 months (maybe), years ago when I was getting yeast infections on a monthly basis. I had started to suspect that it had something to do with the hormonal changes from the pill. So we tried different pills to see if there was something that would not cause me to get infections. I think Yaz might have been the third thing I tried. I didn't have any terrible side effects, but it didn't solve my yeast problem either.

Eventually I went off the pill, after a girlfriend told me about a book called Taking Charge of Your Fertility. It's not for everyone, but if you're in a committed relationship and can trust your partner, it's one way to go, whether your goal is to avoid getting pregnant or if you are trying to get pregnant. Plus, it was a great way of knowing with pretty good certainty what day my period would start. And I haven't had a yeast infection since I went off the pill.