The difference is that the green ones are firm with hard skin. Savory and cannot be eaten raw. The yellow ones are soft to the touch and have a sweet taste. Essentially the same vegetable is in different stages.