A better statement would be that the money spent on rent builds no equity while mortgage which leads to eventual ownership can build equity assuming the property values continue to appreciate.
O.K., I buy that statement as long as we keep in mind the total housing costs and don't simply compare rent to mortgage.