NASA has a far worse safety record both overall and in the same development timeframe as SpaceX.
May I remind you that NASA managed to design three people to literal death in their first multicrew capsule? And it wasn’t even a launch failure?
https://en.wikipedia.org/wiki/Apollo_1
Also worth mentioning that for a while in the 50s and 60s, it was a meme that our rockets always failed while the Russian ones didn’t. It was even quoted in the book The Right Stuff. You maybe want to look at this list: http://claudelafleur.qc.ca/Scfam-failures.html
The really funny thing about that idea about the Soviet space program was that it was a complete myth! We now have access to their secret archives and they blew up far more rockets than we did! They just did not put their space program failures on National TV like us so everyone could watch them blow up rocket after rocket like us.
We now know their space program was one of build and try to launch rapidly, down and dirty, and cheap. If it explodes, "OK, Da, great! Find out why and fix that, launch the next one in two or three weeks. When that one explodes, find out why and fix that, rinse repeat, over and over again. Keep at it until it doesn’t go BOOM. AND, Keep it simple, stupid. You want more power? Easy, strap on more rockets.
Everyone was military, safety was second, third, or even last.
Except for the Soviet disregard for safety, Elon Musk is modeling their experiment to fly with SpaceX; don’t worry about blowing up rockets. Why? It works. Launch, crash, go BOOM? Fine. A crash or BOOM provides one more way that needs fixing. Figure it out, fix it, launch again, find the next oops.