Both D.O.s and M.D.s spend four years in medical school. Both D.O.s and M.D.s take the MCAT and are subject to a rigourous application process. Both must pass a state licensing examination to practice medicine. D.O.s and M.D.s perform surgery, deliver children, treat patients, prescribe medications..