Help! Yeast infection?

I had sex with my boyfriend and he put his penis way too far inside that we heard a noise. We stopped, his dick had a little bit of blood but we knew it wasn’t that serious so we left it alone. The next day I woke up with white clumpy discharge, which I know it means yeast infections. His penis been hurting a little for the past few days so we haven’t had sex like for 3 or 4 days (don’t remember exactly the days). And also he said it’s not a big deal because it doesn’t hurt him much. Right now, he wanted to have sex and I told him no because I still have the white discharge (yeast infection... I think) and he told me that he also has that. I’m so confused to how we both got it? And how we can make it go away.