The answer is partially inelastic collision
In this type of collision there is no conservation of kinetic energy, and the objects don't stick together after the impact.
There is deformation of the ball (which causes heating)
There is friction between the ball and the bat.
And there is loss of energy due to sound.