<human>: Hi everyone,

My wife and I got a $250k gift from her parents towards buying our first home. We have about $100k saved. 
We just put an offer on an apartment that we expect will sell around $312k.

We have to use the $250k for our purchase. We are debating on whether to borrow the rest or just pay cash for the whole thing and live debt-free.

Our agent and our banker (obviously...) tell us that we should invest our money and take a mortgage, even if it's for $80k or so (assuming we pay $225k in cash and use the rest of the gift for furniture, improvements, etc). Their rationale is that it's very cheap to borrow money right now and why not let our money earn us 8-10% at the stock market while we pay less than 4.5% for a mortgage, which is also tax deductible. This makes sense but I really don't know how to compare the two situations, as mortgages have closing costs involved, attorney fees, etc.

Should we take a mortgage and invest our money? If yes, should we take a 15-year or a 30-year mortgage? We can afford the monthly payments of either.

Can you condense the text into three sentences or less?
<bot>: debating on whether to invest our money and take a mortgage towards a home or just pay cash and be done with it. If mortgage - should we take a 15 or a 30 year?