Most of the time, you should remove the tooth. Unless it’s in functional occlusion, i.e., you can bite perfectly with an opposing tooth. Also, your gum condition must also so be in a healthy state around that wisdom tooth and maintain routine cleaning/check ups. You must also make sure it’s not harming your second molar in front of it, due to angulation. It also depends on how deep the cavity/decay is and your symptoms. So many variables in dentistry that it’s hard to diagnose via messaging without digital imaging. I would get a second opinion from 2 dentists that see you in person. But if you want the average quick answer, after over 20 years in practice and surgeries, 80% of the time, it’s better to extract the tooth.