Is it worth finishing your PhD if your advisor thinks you are not cut out for research? I am a fourth year PhD student.  My advisor told me I was a bad researcher, and as I understand, I would need his letter of reference if I wanted to do any research in the future.

He advised me to pursue a career in data science when I graduate.  However, I think if I wanted to, I could get a data science job right now, and wouldn't have to bother finishing.

Is there any advantage to finishing a PhD if I can get the same kinds of jobs either way?

Thanks.
I am very, VERY reluctant to tell anyone to scrap what they've worked so hard for. I don't have a doctorate and I can tell you that I'm always impressed when I find out someone has one. To me, it means they contributed something new and significant to their chosen field. That's impressive. Think of it this way. Let's say you are NOT a good researcher. That means you broke through that hurdle and achieved it anyway. You had drive and stamina others might not. Let me show you how impressive it is to achieve a doctorate. I Googled on "what percentage of Americans have a doctorate".