Yes under section 54 of the IT act if you sell a residential flat and buy another one you can claim exemption under section 54.
Have you included house property in your capital. Since you have 2 house you can give 1 house on rent and include such house in capital and increase your debt equity ratio. And in case of sole proprietors I think bank should take a look at all your asset and including your house I think you will make a great debt equity ratio.
Hope you find the information helpful if you do please rate it 5 and provide your valuable feedback for my improvement.
Thank you