Ovulation pain?! Idk

Im not sure what it is but.. so every time i drink dark soda around my fertility window i get a bad sharp pain in my abdomen area. And also tmi private area. But like 20 mins go by i pass gas and it goes away. But if later on during the day i drink soda again it comes right back.. ive gone to the doctor about it and they told me it ovulation pain.