Opinions are split on this one. Some players swear by Animal Crossing, finding The Sims 2 Pets dull by comparison. Others disagree completely, arguing there is not much to do in Animal Crossing beyond talking, walking around, and selling what you pick up, whereas The Sims 2 Pets offers a wider variety of activities and is a lot more fun.
Ultimately, which is "better" comes down to personal taste—Animal Crossing for a relaxed, cozy loop, or The Sims 2 Pets for more to actively do.