In the picture and x-ray, I can see some infection around the teeth. in fact, gum infection is also there. You have intraoral swelling too. There is very little chance to save this tooth. You can get it removed and the infection is curetted. After that, the implant can be placed which is a permanent option for you.