Hydrogen vs. Battery Electric Cars

I remember back in the early 2000's when there was a lot of hype around hydrogen fuel cells, but that kind of dropped off when stuff like Tesla started coming around and have not really heard much about them in recent years. I wonder, if it is not already done, if the exhaust was passed through a condenser (if necessary) instead of out into the atmosphere, and then goes through electrolysis again, creating a feedback loop system, how long could a fuel cell then last? Hopefully the efficiency continues to improve, would be nice to have the most common element in the universe solve our fueling needs.