And agreed with others. If you did not do a great upgrad / did not sufficiently self-teach, and you want to quickly level up on tech fundamentals + some specialty area, hard to beat. You can easily do more boring tech without, and quite successfully. Likewise, some people luck into elite teams or strong mentors to replace this... But unlikely and you won't really know. (We happen to be like this, but it is rare and takes work on a sides.)
Staying on for a PhD after is more of a passion / self-investment, eg, passion for leading r&d or some niche.