Emergence of hydrodynamic heat transport in semiconductors at the nanoscale