Because the cost of debt is tax deductible, the cost of equity is always larger than the cost of debt. Furthermore, the cost of equity is higher since, unlike lenders, equity investors do not receive predictable payments.
Because interest payments are regarded as expenses, debt is less expensive. In a company's capital structure, debt is also prioritized. As a result, in the event of liquidation or bankruptcy, debt holders are paid first, followed by equity investors.