Could Jesus have given in to temptation? If so, they he could have sinned. If not, then how was he really human?

1 Peter 2.21-22 says Jesus could not have sinned.

Hebrews 4.15 says Jesus was tempted in every way as we are.

Temptation had the same dynamic for Jesus as it does for us, and therefore he was tempted as we are even he could not have sinned.