The most common meanings of the word "yield" in an investment context are:
Although they are superficially similar measures, there are important differences between them.
Dividends are a very different income stream from interest. Bond yields are usually either fixed or floating and will be paid unless the issuer is in serious financial difficulty.
Dividend yields depend on company profits and dividend policy. This usually means that dividend will grow. It also means that they tend to be far more risky than interest payments on bonds. This is why a yield gap exists.