Unless you have a tankless water heater and no lead pipes in your house, in which case it’s fine to use the hot water from the tankless water heater for food / coffee / tea. At least that’s my understanding.
That's my understanding also. I only do it if I was already using hot water recently though. It seems pretty wasteful to pour all of that perfectly good cold water down the drain while I wait for the hot stuff to get to the faucet.