The problem with both electric cars and hydrogen cars is that assuming there is no great change in renewable's technology and that the electricity is produced mainly from Hydrocarbons or Nuclear plants that have long term storage of spent fuel problems.
Both types of technology need electrical power to either charge the batteries or produce the hydrogen and in a lot of cases you are removing the pollution from cities to the countryside as the pollution from power stations has to land somewhere.