If by rodents you mean gophers, I can't imagine that garlic or daylilies would do much, except perhaps to serve a bait and distract them towards themselves and away from other plants. In my situation, nearly anything that makes a large root or tuber will get eaten by gophers, including onions and garlic. All my root crops have to go in raised beds with metal mesh underneath to exclude them completely. Only plants in the amaryllis family (such as daffodils and narcissus) and some in the iris family, seem to be poisonous enough to be immune. They reguarly destroy a certain percentage of other plants too, especially when they are young. But all important plants, especially new trees that are quite valuable, get planted in wire baskets. By the time the wire rusts in a few years they are big enough to tolerate some root damage... Traps can help too, but it takes a bit of skill to set them effectively.