Role of Defect Type in Optimizing Photoelectrochemical Hydrogen Production Catalysts