Tax loss harvesting only makes sense if you keep on buying and selling multiple funds/products.
Hold only one index fund, hold it long-term and the problem vanishes: all the gains are not taxed until you sell the fund and they are always net of losses.
Not to mention the massive benefit of deferring taxes in a compounding context.