How to decide if I want to pursue PhD
Think of a PhD as a funded research post. Its primary purpose isn't to get you a job but to give you a space to do academic research (with the minor caveat that I am not a computer scientist, and I understand that there are some job listings which ask for PhD graduates). Your research will be on an extremely narrow question, and these are usually not directed at an industry-relevant task. It is highly unlikely that the research output will make you any better at your job.
If you want to do the research, and there is a topic that motivates you so much that you could work on it exclusively, even if nobody else really cared about it, for many years, then a PhD may be right for you. Many PhD students discover that this isn't really the case for them, however, and you could be at a high risk of this if you begin without a reasonably specific topic in mind. Sometimes people phrase this in some sort of macho framing, as though PhDs are there to show you are tough - while toughness matters, intrisic motivation towards a potentially extremely obscure research topic is an absolute prerequisite. There is no point doing it for title, bragging rights etc.
I would suggest that if you aren't highly motivated by research in and of itself, you would do a lot better not to do a PhD. Nobody will think the less of you for not being Dr. Crazy Cucumber.
Edit: typo