I don’t think Gagarin was the first in space.
I read somewhere that the Russians had several who did not survive re-entry before Gagarin finally made it.
There is a great article about one who did not make it.
“Cosmonaut Crashed Into Earth ‘Crying In Rage’” was the title. NPR online I think.