Yes the loopholes are intentional but it only helps very few individuals and a whole industry of layer, while corporations aren't actually in the business of finding tax loopholes they are indirectly forced to participate anyway because their competitor does. People blame the companies for evading taxes but they are not the problem they have to play along because everything else would be hard to explain to the shareholders.
Imagine if you are a business owner and your company slowly grows to amazon size. At what point would a sane person like to pay people to evade taxes? You would never want to do that instead of building a team of tax specialist or outsource that you could expand in real business. Your local small business owner and Jeff Bezos both have no interest in that.
I think we'd be better off fixing the deduction of such problems, but just pointing out that part of the reason taxes are so complicated are to enable this. Another reason is to create corporate tax loopholes...