I have experimented and have found the main thing is the material your clothing is made of.
When I wear all-cotton clothes, it never happens in/out of my car.
Walking on carpet in footwear made of plastics is a shocking event, too.
Cotton socks around the house has worked wery well.
When I forget to change into cotton, I get a shocking reminder! ;)