24But to remain in the flesh is more necessary on your account.
The other part that attracts Paul is that it is more necessary for the Philippians (and others) that he continues living on earth. In summary: to die is better for him, but to continue living is more necessary.
24 But to remain in the flesh is more necessary on your account.