This is a false dilemma known as Euthyphros dilemma. You have given two options. The third option is that an objective standard exists However, the standard is not external to God, but internal. Morality is grounded in the immutable character of God, who is perfectly good. His commands are not whims, but rooted in His holiness. It is a question of the ontological nature of God.