In the second case the velocity of the body will be smaller, since the store of potential energy possessed by the body at the height h is converted, in the first case, entirely into the kinetic energy of the body and, in the second case, into the kinetic energy of the body and the prism, simultaneously.