Either could come from a coin. The first switches between hit and miss about half the time, as a coin switches between heads and tails on average; the second switches more often, with fewer long runs. Gilovich, Vallone and Tversky showed six sequences like these to 100 basketball fans in 1985. The ones picked as the best examples of chance switched more often than a coin does on average, and the sequence that switched at a coin’s average rate was called chance by only 32% of the fans, and a streak by 62% (Gilovich, Vallone & Tversky, 1985).
Gilovich, T., Vallone, R., & Tversky, A. (1985). The hot hand in basketball: On the misperception of random sequences. Cognitive Psychology, 17(3), 295-314.