Yeast infection !!?

So I’m pretty sure I have a yeast infection and it hurts so bad , my doctor gave me a list of medications I can use during pregnancy and it mentions Monistat but I’m not sure which one is good to use especially since I am 39w and I could go into labor anytime soon 😩 , what do y’all recommend