An MD (Medical Doctorate) is like a master's degree. It's not like a bachelor's because many MD programs start out with or require a BSc, biology is a popular choice but a lot of STEM majors are possible.
But MD+PhD programs exist and those are definitely PhDs.
You are right that an MD is not a PhD, though. Notice how they don't call it a PhD.