This may be a bit personal but, back when I was studying for my residency entrance exam, I would often get extremely horny out of nowhere. I quickly realized that attempting to ignore it and power through made studying damn near impossible, because it turns out you can't really focus on anything when you've got a raging boner. So I was really only wasting precious study time (I had very little time to study for the test, because I still had several classes to attend and my thesis to write).
The solution? Jacking off. Whenever the urge arrived, I'd quickly get it out of my system and go right back to studying.
This was a lot easier than struggling for half an hour while barely reading anything, because all the blood from my brain had gone down below. Just cranking it out cleared my head of intrusive thoughts and also gave me the Sage Mode buff, which made studying even easier.
In this manner I attained the 3rd highest score out of over 100 candidates (which is actually crazy because I had severe COVID during the exam and could barely read the questions lol). I also got a huge blister on my dick but it healed later.
Anyway all of this is to say that if you're having trouble studying because the coomer within is acting up, don't fight him. It's more trouble than it's worth, especially if you're on a schedule