Disclaimer - I have one prescribed medication, a very light dose of trazadone as an off label sleep aid, and I often forget it, so I’m probably not the best to evaluate the risks and dependencies of prescription medicine.
But so far we’ve mostly been talking about either mostly mild/harmless addictions/dependencies (caffeine in it’s many forms), or the mostly serious/risky opiods. There’s also a lot of people using things, shall we say in the middle as official medicine or self medicating - things like alcohol and cannabis in various forms.
For the OP’s category of minor stimulants I think the risk and consequences are minimal. As a teenager and young adult, I certainly overdid it to the point of noticeable consequences upon cessation. About 2-3 days of painful headaches and 3-5 days of sleepiness are mild enough for me to not worry about that level of addiction because they’re low.
But more extreme stimulants (some of my parents friends on “weight loss drugs” that were basically caffeine and amphetamines) can be considered “medicine” but the consequences of addiction are much higher. You have to be able to trust your physician that they’re pushing you to use such things for legitimate reasons, and not to fill some quotas. And that they’re going to help you help yourself if you do move past dependency into addiction.
And the plethora of issues from anti-anxiety meds like diazepam, ADHD meds, painkillers, et al is yet another class of balancing risk vs quality of life.
Really again, it’s exactly the dilemma the OP suggests, because so many of the factors (across a wide range of medications and risks) aren’t easily quantifiable. QOL (quality of life) is very subjective - what is tolerable for one person is unbearable for others. Risk factors for addiction vary from the familial, to genetic, to early conditioning/exposure. Trust in our health services is understandably low after decades of profit taking, out-and-out pushing of known dangerous drugs, and disconnects between PCP and specialists.
This is one of those situations that really can’t be concluded in general, only in the specific in my experience.
But to do my best, I’ll head back to my earlier comments on advantages vs. risks. If the advantages are noticeable, and the risks minimal, I see little to no harm (caffeine). If the advantage is noticeable, and the risks are controllable and unlikely to have long term harm (cannabis in non-inhaled form) then that’s up to the person as long as they’re educated to said risks and it does no harm to others. Beyond that (alcohol and tobacco), we’re starting to get into much more noticeable heath risks and risks to others. And that’s where you want and need as much third party advice and pushback to make sure you’re not harming yourself and others.
[ no shade cast upon any and all participants or readers of the threads who are using and not abusing prescription drugs, recreational drugs, or tobacco and alcohol, as long as they’ve made a rational evaluation of the risks to self and others and taken steps to mitigate/remove them ]