Three Sisters pattern has been generalized as a “guild”, with beans fulfilling the function of a nitrogen fixer growing in the vine canopy layer (using the sturdy corn stalks).
Knowing that, wouldn’t you substitute beans with a different nitrogen-fixer at an open canopy slot?
I've had beans overtaking the maize and I've had squash overtaking the beans.
YMMV.