https://thetaxtalk.com/2021/12/07/capital-gain-exemption-8/
The purpose with which the law is enacted is more important for granting capital gain exemption u/s 54 or 54F