Idk what it is

How do I tell if I have a yeast infection vs a bacterial infection. I just don’t wanna have to go to the Doctors so if I can get over the counter that would be nice.