I guess depends on what valuable means. I imagine most comp scientists are less replaceable than most software engineers, so point for compsci.
Obviously this is a huge generalization but I think it's a useful way to think about it. And when I say scientist, I mean "Professor of CS" not "24 year old with a BS in CS".