ESI is processed "edge-side" - for example Akamai or Varnish. So the client never sees the ESI include tags, they see the fully rendered page.
HInclude processes client-side which means the search engine's spider will need to be able to process JavaScript. Search engines seem to be moving this direction but they may not all support it.