In general, getting an extraction when your natural tooth can be saved with a root canal is a bad idea for your overall oral health. Tooth removal creates many complications with your jaw and adjacent healthy teeth, including shifting teeth and bone loss.
Once the tooth is gone, the best way to prevent damaging surrounding teeth and bone is with dental implants. While effective, the process for getting dental implants is more invasive and costly.
On the other hand, a root canal is a relatively simple procedure that is minimally invasive, causes little discomfort, and has little adverse effect on the rest of your teeth and bone structure.