Technology has set us on a path toward one of two dystopian scenarios–but it’s not too late to save democracy