I'm not sure where I should post my general question but I wanted to know about something everyone uses.

Gas Caps.

Which is the best replacement for one that is starting the not working dance. I get the check engine light after putting gas sometimes or at random. I am more than certain it is from the gas cap wearing out.

Is the best replacement a OEM cap or an aftermarket one found in places like Autozone?

I would greatly appreciate every bodies opinions and experiences. Thanks.