Education all the way here . Education is not limited to the four corners of a school wall. Aside from that, I bet the person who is choosing is already a bachelor's graduate and the money is to be used for specialization of some sort, making the person get a job way more easily with higher compensation. While this reply stated the flaw of both options...
1. If you have earned money to buy a good real estate - we can conclude that you have enough knowledge, experience, and practice to continue earning. And your success implies that you can engage in self-development, which is close to the value of education.
2. If the money for real estate just "fell on your head" - here it's more complicated. If you do not have a job, and knowledge to start earning - real estate will solve a small part of your problems and temporarily. Why? Because you will still have the costs of maintenance and maintenance of real estate, taxes, utilities, .... And sooner or later, you'll sell your property. And you'll be back to the question of what's better? To buy knowledge or to buy real estate. but it's cheaper.
If you have a job that allows you to support yourself, but does not allow you to save significant sums, for example, to buy real estate - then it is logical to buy.
PS for one reminder - not all real estate is liquid. As well as not all knowledge - useful and can be applied
I still think investing in one knowledge is still the best because we can carry and apply it anywhere we go. It can even earn us money to buy more properties.