Xubuntu 24.04 or Lubuntu 24.04 would be more suitable for a 2012 device.
Also, there have been examples where an Ubuntu OS (or Ubuntu family OS) does not boot correctly on older equipment (reason unknown) but there is a work around worth trying.
Years ago, pre UEFI, Ubuntu was installed in one partition, have a glance at Legacy install to one partition