Which one is better to invest in? Real estate vs Stock Market

Stock Market Pros:
Less time commitment
Beats real estate investment over long terms
More liquidity
No headaches with tenants
Can do from the privacy of your home
Stock Market Cons:
More volatile so more risky
If investing in Individual stocks, it will need time commitment and more chances for loss
Real Estate Pros:
Flipping properties can make quick money
Ability to leverage. Use other people’s money [OPM]
Tangible assets
Real Estate Cons:
It is a toxic asset
Needs more time commitment
Requires more capital to enter
Maintenance [property management fee, repairs, HOA fees, property taxes, tenants not paying rent, frequent turnover of tenants, etc] and Vacancy costs
Taxes and insurance costs
Bad tenants