Climb at Maximum Gradient enables a given altitude to be achieved over the shortest distance.
while
Climbing at the maximum rate of climb speed enables a given altitude to be reached in the shortest time.
addtional to my message ,
Vy (best rate of climb speed ) is always little higher than Vx ( best climb gradient speed)
regards ,
kaepa