What determines whether an investment should be made using debt vs. equity?
For example, startups are often financed with equity, while mortgages are always financed using debt. What characteristics about the investment (like risk, uncertainty, information, duration, etc) inform whether one or the other type of instrument is most efficient?
I would love a precise answer, in particular if there is a text book answer for this.