CARMAX can locate a car for you and have it shipped to your branch, however, and if you don't like it, you can walk away from the deal. So, to summarize, CARMAX for ease of purchase and refund policy and probably better "disclosure" of the car's history. DEALER for possibly better price, better selection and better warranty options. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.