Tips for ingrown hairs

Every-time I shave I always end up getting ingrown. It’s frustrating because they can be painful. Should I try waxing instead. Do I see a doctor about it Ik a lot of people get them but damn😫. Do I pop it or what?