It’s situational but hero’s cards then color imo
Synergy > colors but does sorta need both, especially if possible
And while i do agree with @ALI_G about kage typically
In this case i believe the DoTs from the 2 flanks and the mana debuff from telluria, kage will be fine where he is but typically is better in flank than wing
Anyways…
When we ran yellow tanks, purple tanks were common
Dispel on left, if not a dispel then we put it on right since green was typically on left due to alberich or mn being resurrection heroes who should always be placed on left wing
So my defense for example was:
Alberich kage guin marjana finley
If kage didnt dispel then
Alberich marjana guin ursena finley
For examples.
Other option could have been:
Finley marjana guin ursena kingston
Last setup would have put defense debuffer to the left, a sniper on each side and an AoE on each side while also keeping the tank’s opposite color at flank. Yellow tank, purple flank. Green tank, blue flank. Etc
Now flanking green tank with red and blue puts 3 colors at a disadvantage
Red is weak vs the blue flank
Blue is weak vs the green tank
Green is weak vs the red tank
So that’s why it’s such a common setup
But yea if it’s crap synergy then the color setup wont be all that effective outside of some really bad war boards
Hope all that makes sense and helps answer your question
Now you said not only about defense.
Offense i don’t run rainbow but if i did then yea hero card > color for placement every time
Now if you’re color stacking; then color placement can become more important in offense
Like if you’re in war and using 2 greens and 3 purple in your team vs a team with gravemaker flank, i prefer setting the 2 greens far apart so that gravemaker can’t hit both at the same time