Disclaimer: I am not an electrical engineer, I am just an idiot on the internet.
I think this would be fine if it’s just a matter of discharging static electricity. If static is building up on your body, touching the car frame will redistribute that energy across both yourself and the car frame. By that point, there’s not enough potential energy in your body to damage whatever electronics you’re working on.
Also, if you happen to be working on computers, they’re pretty damn resistant to static shocks. Better safe than sorry of course, but it’s hard to kill a computer with static. ElectroBoom and LTT made a pretty good video about that a while back.
In an ASMR voice: