There is no definitive answer, as it depends on the game and your individual situation. Generally speaking, if you're not sure whether a game is worth trading in or not, it's probably best to wait until after you've played it for a while to see if it's worth keeping. Factory resetting can sometimes erase saves and other data, so it's always a risk.