Is it better to disable a button or hide it?
Buttons. Disable the control to indicate that the user needs to do something first to “unlock” the functionality that this button performs. Buttons should never be hidden, because there is an expectation of persistence for them.
Why not to use disabled buttons?
Bad accessibility
Sometimes disabled buttons are designed in a way that they cannot be read by a screen reader (buttons are not focusable, and hence users can't reach them with a keyboard). No need to explain that users with disabilities will face problems with such behavior.