Sure the market says you should put the money into stocks, but from a risk perspective this is not meaningfully different from paying off your mortgage and then borrowing money at an incredibly low interest rate for the sake of buying stocks. It's still trading on margin.
If you must do this, then don't use the money on moonshots and pick something with low volatility.