Clues to the Origin of the Mass-Metallicity Relation: Dependence on Star Formation Rate and Galaxy Size