Stocks that are great for retirement aren't necessarily good for someone who's trying to build wealth. Lest there be any doubt about this, McDonald's (MCD -0.42%) and ExxonMobil (XOM 0.23%) serve as textbook examples of the point.

In many respects, retirement serves as a clear inflection point in one's investment objectives.

Prior to retirement, the goal is to build and accumulate wealth. This is often done by favoring growth stocks. Some great examples of these are Tesla Motors, 3D Systems, and LinkedIn.

All three of these companies are still early in their corporate lives. If they're technologies and services continue to take hold, they could end up being significantly larger than they are today. By contrast, if they don't, then they could easily go out of business.

The net result is that all of their stocks are highly volatile, as investors are quick to the trigger when it comes to news that could either deflate or further inflate future expectations. And while this risk is fine for people with decades to go before retirement, the thought of losing principal is simply not something most retirees are interested in.

In addition, after retirement, the purpose shifts to replacing lost income. This results in a strategy of investing in dividend stocks, bonds, and other income-generating alternatives.

This is the reason, in turn, that stocks like McDonald's and ExxonMobil are generally considered to be good retirement stocks.

Beyond being two of the higher yielding blue-chip stocks on the market today, they also sport low betas, meaning they're much less volatile than the broader market. In McDonald's case, it yields 3.2% and has a beta of .34. In other words, it pays a higher dividend than the general market while being 66% less volatile -- for context, the S&P 500 (^GSPC -0.46%) yields 1.95%. And in Exxon's case, it yields 2.7% and has a beta of .92.

These are the exact qualities that most retirees want in stocks for their portfolio. With this in mind, if you're in or on the cusp of retirement, then you could do a lot worse than McDonald's and/or ExxonMobil.