No margarine is not same as vegan butter. Margaine may contain animal products like dairy but vegan butter is completely plant based. Vegan butter is dairy free. The two most famous non dairy vegan butter is avocado butter and peanut butter. If we compare margarine vs vegan butter the second one is more suitable for keto because of its health benefits over margarine. Vegan butter contains less amount of saturated fat compared with massively saturated fats of margarine. That's why if you compare vegan butter vs margarine then vegan butter should be the better choice.