I'd say the latter is worse. Good animation with bad writing would feel like such a waste, the other way around it might at least be somewhat enjoyable to watch.
A lot of my favorite shows have shitty animation. Think of it like a video game. Amazing graphics can only take your game so far, if the rest of the game then what’s the point