Both had two vehicles lost in space/reentry, the shuttles just held more astronauts. In terms of percentage of fatal missions the two were roughly equivalent, with Soviet failures front-loaded into less sophisticated and less safe early vehicles while the US failures were later on an overly-complicated system design.