The old split was simple. Flash games needed the Adobe Flash Player plug-in installed and enabled in your browser, while early HTML games relied on whichever plug-in or built-in capability the browser happened to offer, with a working graphics card doing the heavy lifting either way.
That distinction has since been overtaken. Flash was formally retired at the end of 2020 and browsers no longer run it, so the entire back catalogue of Flash titles is effectively stranded unless preserved through a dedicated emulator project. HTML5, by contrast, is native to every current browser: no plug-in, no install, and it works on phones and tablets as well as desktops.
So the meaningful difference today is not technical preference but availability. Anything built in HTML5 still runs; anything built in Flash generally does not.