Well, we lost one Apollo crew out of sixteen - the first one, in what was intended to be the first shakedown flight.
I think a better comparison would be to Soyuz, which had two fatal accidents (again early on) and over a hundred safe flights ever since.
The problem with the shuttle is that its hazards are inherent in the design and can't be eliminated by any amount of incremental improvement.
No, the problem is that NASA was not allowed to build the correct design for shuttle due to budget cuts. There is nothing wrong with the concept of reusable spacecraft--the problem is that NASA was never allowed to actually build one.
As just one example that I recall--the NASA engineers wanted to build the shuttle airframe with titanium, but back in those days, titanium was exotic, expensive, and difficult to fabricate and, because of the budget cuts, they couldn't use it. In the intervening time, technology has dropped the price and increased the ease of manufacture so much that today we even make GOLF CLUBS out of the stuff.
Important to note that the crew of Apollo 1 was killed on the ground, during a practice launch. They never left the ground.
For those not familiar with the Apollo 1 accident click this link.