How do you think the hydrogen is produced? Currently it's either a product of petroleum or produced by using electricity to split water. So your argument of electricity not inherently being clean energy applies to hydrogen as well.
Assuming you use electricity to split water to power your fuel cell, you've basically just made an even more complicated way to use electricity to power your car. So at that point, just simplify it and just use a battery and a motor.