Does repaying a home loan with MFs allow tax exemption on capital gains?

The asset whose sale proceeds are to be invested should be held for the long term, the house must be bought one year after or before selling the main asset, and you must not own more than one house at the time of sale of the asset.

Does repaying a home loan with MFs allow tax exemption on capital gains?
The asset whose sale proceeds are to be invested should be held for the long term, the house must be bought one year after or before selling the main asset, and you must not own more than one house at the time of sale of the asset.