Stock market is not timing but time in the market. Best to dollar cost average in. Every decline has eventually come back. Those of us who rode out the March 2020 decline have been rewarded handsomely.
That said I prefer stocks over real estate. RE has too many expenses (property taxes,insurance, maintenance). Stocks you have the initial investment but no on going expenses.Some even pay you a dividend. Plus much easier to sell.