Just don't. Those who say you should go for a PhD probably don't have a PhD.
Research in academia is not what you think. For PhD in CS, most of times it is not about working on problems that interest you or problems that are important/impactful. It is about working on the problem that your advisor assigns to you, which might be nonsense but you have to work on it because that's how your advisor and you get funding. If you really want to do research, consider switching to a research focused team or just work with your friends in academia as a hobby. Many people who published impactful papers in CS do not have a PhD.
Career-wise, there are many who benefited from their PhD. But there are just way more people who did a PhD and that absolutely did not help with their career in terms of lost wages and YoE.