Being in the infantry in World War II was certainly dangerous enough. But that wasn’t necessarily the most dangerous combat role, as detailed in the article hyperlinked below:
My grandfather was a gunner on various US Navy vessels that escorted Merchant Marine ships through the North Atlantic. (Number 3 on the above list.)
He once told me that when a ship capsized or was torpedoed, there was seldom any hope of rescuing survivors. Such was the nature of the North Atlantic.