In most of the case, the pain medication you obtain from public health faculties will be more effective than those available publicly.
Pain medication is heavily regulated due to its potential of abuse. Due to that reason, the strength of any pain medications available in an open market will not be as strong as those from a hospital to avoid legal troubles.