If you plan to withdraw 4% per year, so you preserve your wealth indefinitely, you're more than 2 percentage points short when the dividend yield is 1.71% [1]
If you want to live solely from dividends, you'll need more than double the capital.
If you want to die with zero [2], it's impossible.
I'd much rather invest in a dividend-accumulating index fund and sell as I please.
[1] - https://www.multpl.com/s-p-500-dividend-yield
[2] - https://www.goodreads.com/book/show/52950915-die-with-zero