The metric that tends to matter in this is ROIC, but since software/internet companies tend to be pretty "capital light", they generally already have a very high ROIC. Unless the company can deploy that money in new growth projects that they aren't already going after, or in accretive acquisitions (hard to do when tech valuations are so high), it probably makes sense to do what they are doing.