For the cost of those flights we could have built a second Hubble, better than the first, and sent it up on an Atlas V.
And along the way we learned a lot about working and repairing in space. A very valuable and useful lesson. Sometimes things work out that way.