There sure are many situations where buying trumps renting. The point in general is that buying is often overvalued and renting is undervalued.
One thing this calculator also cannot take into account is risk: if you lose your job, or get hit by an economic crisis like the one on 2008, you have an added catastrophe. But even discarding that, there are always situations where its better to buy.