Yes, but did IB offer rates lower than your mortgage rate over the course of your mortgage? Your margin rate fluctuates daily, and you’re subject to margin calls that could bring the whole house of cards tumbling down.
I did not do the math, but it seems like you’d need to simulate a stochastic process to come out with the likelihood of winning in this scenario, similar to the various FIRE calculators out there [0].