Between the two, I might go with the knife in most situations. I can't carry my hunting rifle around with me all day. Mine also has a huge scope on it that makes it useless at the distances you would typically encounter a hostile human attacker. The rifle is also overpowered for the job, and introduces concern for damage to unintended targets.