This analysis is definitely wrong, it's discussed in textbooks too. You need to seriously, properly consider the risk of the investment, and if your model of the stock price is that it gently drifts with the market while yielding 5%, then that's just wishful thinking on your part.