Better to just lose weight, that protects you from many other preventable diseases, is risk free, and easy to do.
For many people this is not true. I never struggled with my weight until I had a weird thyroid thing in my mid-20s. While my levels have returned to "normal" losing weight has been quite difficult. I'm far from the only one who has a hard time.
Your life experience is not universal.
It's not a bad idea to lose excess weight, but it's a weird response, it takes months to lose weight and ~1 hour to get a shot. I got my booster in about 10 minutes because they offered it to me at a scheduled appointment.