Comparing death rates in Australia, which actually did pretty major lockdowns, to South Africa[1], I don't know that this is a great argument against them. South Africa definitely paid for that infection-based immunity in human lives.
[1] https://ourworldindata.org/explorers/coronavirus-data-explor...