Kierkegaard, speaking in the voice of the upbuilding discourse at the end, says they are both wrong. They're both trying to find God in a childish way. Whatever they relate to in an external way will never make them happy or give them meaning. Art, science, dogma and ethics constantly change. We all want to be in the right and never in the wrong. Once we find what we desire we find that it wasn't what we imagined it to be. So Kierkegaard says to leave it all to God.