My estranged dad left me $420K when he died and I want to make the most of it. Should I invest in stocks or buy a house?

My estranged dad left me $420K when he died and I want to make the most of it. Should I invest in stocks or buy a house?