Deductions & credits

No one here can give you the kind of legal advice you seem to require.  As a general rule, cash basis taxpayers must report income when it is actually realized.  Also as a general rule, failing to take legitimate deductions to show a higher income for a loan application could be considered loan fraud by the lender.  I don't know of any obvious way to defer the loss on the flip home.  However, you should obtain qualified professional advice.