But “veganism is unhealthy” is an opinion. Your parenthetical about the lack of B12 indicates that you know this, and that the topic is more nuanced. If you don’t normally qualify that statement, why did you choose to do so here?
Frankly, I don’t believe that you don’t mean it as an attack on the lifestyle choices of others, and I’m not surprised that people get defensive.