I have never had trouble stowing the gas cap on a car while pumping gas before I got my 2013 Accord.
It takes a lot of fiddling to get it to stay in place on the door.
What were they thinking when they designed it?
The trick is to give the cap a slight twist when placing on the holder. That allows the treads to find their groove more easily. I never have any issues with the cap.