The Democrats way of nominating a candidate is very odd, so by the looks of it, neither won the nomination due to being a close race.
Read more about it
here.[which you can read up on why Florida and Michigan couldn't be a part of the electing process too.]
-chan