Select the sentence with the correct punctuation and capitalization.

A.
I wanted to go to the mall but I had to finish my homework first.

B.
i wanted to go to the mall but i had to finish my homework first

C.
I wanted to go to the mall, but I had to finish my homework first.

D.
I wanted to go to the mall but, I had to finish my homework first.