ovarian cyst?

kaysie
went to the doctor today because i felt a small ball below my torso on the right side, and it doesn't hurt but i do feel soreness when i touch it like a bruise kind of pain but other than that nothing, i have also experienced pain during sex a lot so that might be connected, i need advice in going for an ultra sound soon because she said it could be hernia but i doubt that it is