The sentences that use commas correctly are:
- Yesterday we went to the grocery store, the park, and the gym.
This sentence properly uses commas to separate items in a list, adhering to the standard rules of English punctuation. The repetition of this sentence in your options indicates it is the correct choice.