An argument can be made that trading with a librarian can sometimes be quite frustrating and time-consuming. Also, Mojang's future plans for the villager trading system might worsen the experience.
Obtain it via enchantment table, fishing, or trading with villagers. Prioritize trading with librarians for consistent results. Protection enchantment offers balanced defense against all threats.