You created two recipes with same id and didn’t add a different suffix to any of them.
When adding two recipes with same id, you need to add different id_suffix fields to all of them. Those values are not visible to player, but are used internally to identify the recipes in save files.
For example, in recipe_food.json you’ve got multiple sugar recipes like:
"type" : "recipe",
"result": "sugar",
"id_suffix": "from_sweet_water",
"type" : "recipe",
"result": "sugar",
"id_suffix": "from_sweets",
"type" : "recipe",
"result": "sugar",
"id_suffix": "from_wood",