Investment requires financing. The firm must choose among internal cash, debt, and equity. Debt can provide tax benefits where interest is deductible, and creditors often require a lower expected return than shareholders because they have a higher claim priority. But more debt creates fixed payment obligations, increases expected distress, and raises default risk. Equity also becomes riskier as leverage rises, so the cost of equity does not remain unchanged.
The cost of capital is a decision benchmark. If a project has risk similar to the overall firm, WACC can be a useful starting point. A project with materially different risk should not automatically use the same discount rate. The Modigliani-Miller framework is valuable because it begins with a frictionless world. Without taxes, transaction costs, distress costs, and similar frictions, simply rearranging debt and equity does not create firm value. Real-world capital structure matters because those frictions exist.