In society A, let's say that the gap between the poor and the rich was high, but the poor had their basic needs being met. In society B, let's say that the gap between the poor and the rich is 0, but the standard of living of everyone is worse than the poorest in society A. In this case, most would agree that society A is better off despite having a non-zero Gini coefficient.
Obviously we want a society where everyone is equal AND their standard of living is as high as it could possibly be, but wars have been fought over figuring out how best to organize society to achieve that.
Oh, this is not obvious at all!
A more marginal reward would result in more marginal motivation. A significant reward would provide significant motivation.
And if the laziest [or unluckiest] person is reliant to some degree on receiving byproducts of the less lazy people's output, then they might be better off in absolute terms from that non-zero Gini coefficient incentivising the less lazy people to work harder.
[the magnitude of the amount likely matters in real world situations too. The answer to whether you'd consider working as hard as people in your company who are less lazy than you probably depends on whether you're being offered an extra dollar or extra million dollars to do so]
Combined with what you'd outlined, differences in individuals / differences in efforts / and luck seem impossible to ever fully equalize.
How can anyone hope to normalize these differences?
Due to the natural variety in persons' behavior, skills, and preferences, some will build or collect a different mix of things. Those things will then get valued as "wealth" or "income" of different magnitudes that violate the `gini=0` constraint.
So, you'd need constant additional violence to re-level the holdings against peoples' individual actions.
They're entirely egalitarian either, perhaps that's why you say they're not communist, see for example the luxuries that a captain has that crew do not and the preferences (larger quarters) that accrue with seniority.
It's both a story-telling crutch and obstacle. It's a crutch in that they never have to explain how they provide for the entire crew while out in space. They just transform energy into matter.
It's an obstacle as they can't really tell a story that involves a limited resource unless they explain why it can't be simply replicated. Now, sometimes, they say just that. But it's always something they have to acknowledge.
And we have to bow to the fact that Star Trek is entirely fiction. We don't really know how a post-scarcity society will function. So we will wind up still projecting contemporary mores on them. So the captain gets a special office and larger quarters.
DS9 has replicators, but they're also trying to be the "wild west frontier" Star Trek, so they're not available to everyone and there are non-Federation societies present. And those societies aren't post-scarcity, so money exists. (And then there are the societies that are both technically post-scarcity, yet still materialistic which is just weird)
Voyager has replicators on the ship, but their solution is to remove the ship from the Federation and handwave the fact that for the most part, starships don't require fuel in a traditional sense. I think the fuel for starships would be antimatter, but it's never an issue on the show unless it needs to be.
However, without getting bogged down in the details of the implementation, I think GINI-1 would result in a society where no one has incentive to work because one person gets all of the benefit of that work.
Whereas with GINI-0 everyone benefits from their work, and anyone who produces more value than most others is still incentivized to work because they will still see a marginal gain in wealth, albeit reduced from what they would normally earn in a higher inequality system since it is somehow redistributed equally to everyone.
Perhaps the goal is not GINI-0 but as close as possible to it.
If you worked really hard to create an extra $1,000,000 in value, where shall we send your family literally the additional penny?