gamalielchosen, I agree with you, in a normal situation Xaril is the best choice. But in this situation, you have a full hand and a full board. Bot did the best choice according to the current game situation.
If in the future you will find other cases, where the bot take the wrong choice for the Xaril, please let us know.