It's not one or the other.
Vaccines work great, but the prevention is not 100% effective.
It seems now doubtful, that we can achieve herd immunity, so we still need something to treat people for which the vaccine doesn't work.
I wouldn't hold my breath on ivermectin though either.