Refraining completely from ejaculation is just as unhealthy as excessive self-gratification. Releasing semen when the body needs release is just as important as urinating or having a bowel movement.
The doctor apparently missed this sex ed class in Med school.