Impaired is impaired. Shouldn’t drive if your ability is compromised, especially when most people only start off with half a clue.
Coffee is also dangerous in the sense that it masks the sensation of fatigue, but you are still impaired. Driving tired is extremely dangerous as well.