Ephemeral networks and chain ids

Yes, but I think using the hash of the genesis block won’t be enough: if you run two different instances of a Hardhat network with mainnet forking, the hash will be the same.