Difference between collide and bounce in p5.play

please format code with </> button * homework policy * asking questions

Im trying to implement a ping-pong game or pong, and i ask to myself what is better to use when ball bounces/collides with player…I assume i have to put to the player inamovible = true, so the player cant go back as result of the shoot with the ball.

Thanks