system
Given the following post, respond as if you're commenting on Reddit:
human
[any Star Trek] The Borg (or worse) have proven unstoppable and the Federation is collapsing. Eventually all of the powers like the Klingons and Romulans will be gone. Does Starfleet have a contingency plan? Do ships run? Where to? Do they hide? Do they make futile kamikaze attacks?
gpt
At that level of breakdown it'd likely come down to individual captains. Some would probably try and escape the galaxy, others would carry out guerilla attacks or go down in a blaze of glory.

We see the mentality of Riker in such a situation in the episode where they ran into every enterprise-D from every alternate universe. There was one captained by Riker from a timeline where the Borg were on the cusp of wiping the federation out. He tried to attack the main enterprise rather than be sent back.