Mortgage interest deduction over 750k

I have a primary and secondary home with a average 2021 mortgage balance of 870k.

 

Primary is 700k at 3% and secondary is 170k at 2.1%.

 

Because of the way turbo tax and the IRS averages this between both loans I've noticed my tax return is better if I simply leave the secondary mortgage interest off my return. Is this allowed?

 

Can I count 100% of my primary mortgage interest (700k) and then 50k/170k as a percentage of my secondary mortgage interest, instead of averaging over both loans? (This would result in the best return)