One must account for the relative sophistication packed into the Mars Exploration Rover too. Moreover, there cannot be a fair comparison between a probe and a long term rover.
Hundreds of engineers had worked on it. A community's confidence was shattered with this failure. Trying to measure the extent of this failure in terms of money does not do it justice.
Such a failure is a loss to the entire world. Science has no boundaries.