Having done both p90x and p90x3, i would suggest you lose most of your weight first. Or if you are already athletic and capable, then do the lean version, not classic.
You want to lose weight, do cardio. You want to get strong, lift. P90x is somewhat inbetween and you wont get strong from...