Is it better to pay closing costs or roll into mortgage?

Is it better to pay closing costs or roll into mortgage?

Mortgage Guide

Rolling your closing costs into your mortgage means you are paying interest on the closing costs over the life of the loan. ... The increased mortgage balance used to cover your closing costs increases the LTV, narrowing the cushion between your loan amount and the value of your home.