It's not a "however," overweight can be a contributing factor for sleep apnea. More soft tissue, more restriction. Weight loss sounds like an excellent first action.
So this isn't an either/or situation. Sleep apnea can also be a contributing factor in being overweight. So do everything: take steps to eat better, sleep better, and exercise more. Small steps in a number of areas are often better than a big step in just a single area.