Generally speaking, assuming both doesn’t have socket and both have same stats, the higher ilvl is better. Only because primary stats are stronger than secondaries.
You are a mage, so auto shot doesn’t have any importance in your rotation, but for melee and hunters, damage weapon is more important than stats.
BFA itemisation is meh…