Diverticulosis is worse than a hernia, but if your doctor seriously thinks you may have that, you need to go see a gastro and have a colonoscopy done asap.
Diverticulosis is no joke. If you have it when you are young, chances are that you will eventually need surgery, where they cut out the portion of your colon that is jacked, and while it heals, you have to wear a colostomy bag for 3 months.
I just went through this whole scare over the last month. My gastro seemed pretty sure that I had it, but my symptoms were more severe than just abdominal pain. Luckily, the procedure showed that it wasn't diverticulosis.