This really depends on what the goal is. If you want to work as a researcher, it is more appropriate to view a PhD at least as a apprenticeship which teaches you how to be a researcher. There are a lot of skills you pick up doing this that are quite difficult to pick up without doing a PhD—not because they’re hard, but simply because you’re unlikely to be aware of what they are.