Some aftermarket parts are reliable, but it's definitely on a case by case basis. I'd first try and figure out what caused the problem before replacing parts, and if you're going through all the time to take it apart, I'd absolutely replace all valves and not just the ones that failed.