While this official troubleshooter works well most of the time, it has had its fair share of issues.
Whether you are trying to fix a stubborn problem, repair/erase a hard disk, or reinstall the latest macOS version, macOS recovery (launched in 2010 with OS X 10.7 Lion) is the right way to go.