It is most likely your coat rubbing on the car's seat when you slide out that causes the static which generates the spark.
dilemma is easy to solve. If you put your hand on the metallic part of
the door as you slide out of the car, you will not get shocked once you
are out of the car. This would only be true if the static electricity
resides on you.