Welding involves a lot of current (not so much voltage). Keep the ground close to what you are welding on as the current seeks the path from the welder to the ground clamp and the harder it has to work to get to ground the worse things will be. From the quality of the weld to what it hurts along the way.
When welding on the body, ground the body close to the weld.
When welding on the frame, ground the frame close to the weld.
When welding on the exhaust, ground the exhaust close to the weld.
Don't make the weld chase through random ground straps/vehicle wiring/electrical stuff to find the ground clamp.
That said, with proper ground clamp placment I will weld on half million dollar cars with more electronics then you can think of. And I don't disconnect the battery.
I actually prefer to leave the battery connected



Let me explain...
spikes in the electical system are nasty. capacitors absorb spikes. The battery is a giant capacitor. If there is a high voltage random static spike that hits the vehicle, that high voltage is generally extreamly low current. The battery will take it and not even flinch. No battery, or one disconnected and that high voltage is free to find a home in some electrical thing that can't take that spike. So contratory to popular teachings, I keep the battery hooked up.
The last bodybuilders guide I remember reading regarding welding on vehicles, unplug all the wires from all the electronic modules. PCM, ABS, insterment cluster, airbag module, radio, etc. Actually unplug the wires, remove the module from the vehicle if possible. I don't know anyone who does that.
Go to any muffler shop, they don't unplug anything. I have even seen them welding holes shut on a running car. "I can still hear a leak", "hold on, keep it running", buzz, buzz, "how is that?", "good", "OK, all done, you can take it now".