When a slab is a reasonable fit
Check that the existing jamb is sound and that the old door closes without rubbing or leaving large uneven gaps. A matching slab can work when the hinge positions, latch height, bevel and thickness line up. Bring measurements for all four items. Two doors with the same nominal width and height can have different factory prep, enough to make the replacement sit crooked or miss the strike.
When the frame is part of the job
Consider a prehung unit when the old jamb is damaged, heavily out of square or being removed anyway. Record the rough opening if it's visible and the jamb depth across the finished wall. Ask for the outside dimensions of the full unit and confirm what comes with it. Exterior units may be supplied with a threshold and seals, while hardware and casing are often separate line items.
Make the side-by-side decision
Write down what you plan to reuse from the current door and ask whether every reused part fits the replacement. If several old parts also need replacing, list those switches before choosing between the slab and the frame package.