When the Harbor Piers are destroyed they can still be used by Neutral Traders and by your own ships on Trade Routes to load/unload goods, so even though the building should be destroyed, its actually not.
Took me several hours just to test this on vanilla, cause vanilla AIs are just the worst and do nothing, but needless to say, people are also reporting the same issue with Harbor Storage and Oil Depots behaving in the same manner, as in, they still give storage and oil capacity when the buildings are destroyed.
TESTING HARBOR PIERS ONLY (vanilla 0 mods):
SAVEGAME: https://drive.google.com/file/d/1RtniQ0cCDnDPzb1B7A4158uTOozIQ5Ku/view?usp=share_link
">