Taxes are necessary. But in the case of corporations I think the problem is not about what the right corporate tax rate should be but instead what does a company do when they effectively have so much cash they can not find good options to invest that money in.
If one of these companies suddenly reports a significant drop in cash due to aggressive investments in something that is failing (say, perhaps building an autonomous car) their stock will be punished, a very negative incentive.
The real question: is a company investing this cash the right thing to do? IMO it is, we want that money at work, building something. I don’t believe taxes can solve this. Instead can we need to find a way for companies to be able to invest this money in new ideas but not be so punitive via the markets when they try things that fail.