The drugs do not have to operate in the brain in the exact same way to produce equivalent effects--both slow reaction times, for example.  Slower reaction times will obviously put someone at higher risk for an accident.  And, of course, the amount of impairment is dose related.  The more of either drug, the more impairment.