I have worked in industry and now is working on my PhD. In my experience, I would still prefer to go for a PhD than working in an industry. I think the important point is that the topic should be interested enough to give us the motivation to work for 3-4 years.