of the two the Yaris will hold up better but the Accent gives a little more room. the Yaris will also hold its value better although you will find small hatchbacks don't seem to hold their value well in the US with the exception of the VW golf/ rabbit (which i hope you looked at if not you should at least consider it although it is a little more expensive) the other cars on the market that are 2 door hatches to consider Ford focus, Smart Fortwo. You may have already considered these but i listed them in case you missed them. out of the list abouve i would buy the VW hands down but they are more expensive than the cars you listed in the less than 12K price range i would go with the Smart most likely unless you travel the highways often or need a rear seat then i would go with the yaris. none of these (under $12K) cars are great highway cars (the VW and ford are decent cruisers but more expensive) so for city driving i would go with the smart and for Highway driving i would pony up the extra cash for the VW.
If you have ruled out the other cars and are only considering the two you listed i would go with the yaris.