Also keep in mind the context of the article. We're talking about insomnia. You're invoking the idea of behavioral habits ("teaches your body)". In fact, the recommendation for not napping comes from behaviorists, Cognitive Behavioral Therapy for Insomnia. I imagine that the idea is to do things that maximize the chance that you actually get the behavior you're aiming for and building on that (maximizing sleep pressure felt during bedtime).
I don't think there's anything wrong with napping for someone who doesn't suffer from insomnia.