Sir check both cars in detail and then decide. Yaris have more features, new engine and very good fuel economy. Turn off for me was very congested backseats and build quality.
XLI/GLI Automatic have very bad fuel average. Only plus points of XLI are bigger size, better build quality and looks. But in my personal opinion (anyone can disagree) XLI is very stripped and in used car market it's resale is also slow.
If your budget allows, do check for late 2016/2017 Pre-facelift Grande if you can find clean unit, It offer much better features and fuel economy than 1.3/1.6 auto. I did same instead of buying FL Gli's with outrageous and ballooned demands.