Here's a third vote for Anxiousnomore, Docs who can't find the problem get rid of you by writing it off to a mental disorder. That gets rid of you and keeps you a patient for prescription refills and the side effects of the drug forever. Keep looking for the answer.
Yeah I don't agree with the dr either. It sounds like a physical problem more than a mental problem. Do you take over the counter pain medicine or any other? What kind of pain are you experiencing?
Your post doesn't add up in that you are not depressed but doc wants you on meds.
I suggest getting a second opinion, and be wary that some busy docs will prescribe meds as a placebo for people who claim they have problems but doc thinks don't have problems. In that case the doc would be too busy to keep dealing with the same person, but it is just a wild guess possibility on my part.