Sounds like a mix of Urinary tract infection and yeast infection. If you try to have sex or put your finger up there does it hurt? That's a huge indicator of yeast infection especially if you have thick smelly cervical mucous.
Sounds weird but plain yogurt is soothing, that might help a little
And I threw UTI in there since you said it hurt to pee. You should call your ob ASAP to get antibiotics. Especially being so close to the end. If it is a yeast infection and not treated beefier delivery you could pass it on to your baby.
Idk about sex I haven't had sex since the beginning of pregnancy since me and the father split. But I go to the doctor Tuesday. And I don't have smelly discharge. There is some white discharge but no smell