I'd definitely choose 1M in cash over living and owning a home worth 1M. The home is both illiquid and necessary: when you sell your home and cash in on the million, you've still got to find a new place to live. Given that you want to live in the same city (or state, etc.) and that you probably need space for all the stuff you accumulated, your office, and that fabulous kitchen, how much do you think you'll spend for a new home then?
A home is only a solid investment if you're living in it. The real value of a home is in that it gives you something you want and need: a roof over your head in a place you want to live.
But if you're paying a home loan on a second home, it's an investment asset just like any other asset and is just as vulnerable to market fluctuations.