Can I create an extension with more than one panel of the same kind that show different html files?

No.

You’d have to use JavaScript to determine which html template to show, but from only one HTML file.

You can’t use/switch between two or more HTML files like you initially describe.