Knee bent or straight?

I was wondering, when you land with your striding leg is it bette to land with a bent knee or a straight leg, I’ve seen pitchers do both so it is confusing.
what is the right thing to do?

your landing leg should be bent when you land (not the leg you push off with)

it helps you drive the ball towards home plate more.

Bent front knee is best.

front knee should be bent