Some schools allow you to skip the Masters’ altogether.
At my school, if you passed the PhD qualifer exam, you also got the masters and continued on. If you failed it, as long as your classes were good enough you got the masters and left in short order.