If I am an investor and have a brokerage account that offers me a a margin rate then relative to the HELOC the heloc is a saving and not an expense.
What you really have is a comparison between
mortgage interest cost
HELOC interest cost
Broker margin interest cost
The first two are securitized and are generally lower.. but they are all a cost! Hopefully the return on investment offsets it. By the way, if it is not a cost.. then why is it deductible on the 1040 as an investment expense??