Reliability wise the Yaris will likely outlast the City. Components like CVT transmission particularly.
But what you prefer in looks is also important. Reliability difference might be minor.
Yaris some find to be too ugly so they prefer a City.
Also drive both and if one has noticeable better power/pick choose that too.