Mac mini hangs on Apple logo after Mojave 10.14.6 Update 2
Newer hardware can boot to internet recovery and attach an external drive to copy files off.

If you can boot to a recovery partition on that HDD - that would be the fastest method. Otherwise, you’d need to boot your Mini in target disk mode or bring an external bootable OS to it to copy files off before erasing it.