You absolutely must choose the right supervisor, at the right university, to match your attitude and lifestyle.
I just can't emphasise this enough. If you're naturally scatty and unfocused, you need a supervisor who can rein you in and give you some direction; if you tend towards hyperfocusing, you need a supervisor who can broaden your interests and allow you to make connections you would have missed.