As a space opera, the ending (RGB) does work in some ways, sci-fi this apocalyptic does tend to follow through on it's promise and end just as dark as they can with leaving a small ray of hope for the (distant) future.
Now putting aside all plot holes, in-universe inconsistencies, and...