If you are super turbo fatty even mild exercise can result in injury. Definitely do both, and as soon as you can, but if you can only manage one then diet should be the focus. That is what will get you to your desired weight with or without exercise. That's all.