My comeuppance for that thought has now come up. I broke a rib yesterday morning in almost the identical way! My mistake was trying to replace the radio in my new car by myself (with one that can play music and audiobooks from my USB thumb drive). I was leaning on my side and reaching under the dashboard when something gave way and made me yell “Ow!”
Lesson learned: leave the do-it-yourself projects to the professionals.
Medically, there isn’t anything they can do for a broken rib except prescribe painkillers (mmm… Vicodin) and tell you to tough it out. Some broken ribs are a threat to the lungs, but mine isn’t, except for the possibility of developing pneumonia from too-shallow breathing, which I may do subconsciously to avoid pain. I learned it’s even possible I may subconsciously favor one lung over the other (by breathing while leaning just so). So I’m supposed to consciously breathe deeply throughout the day for the next few weeks.