You're not taking a financial hit, you just feel as you are. You think the capital gains tax is taking out a huge financial hit on something you already made lots of profit from. So you're still making a profit just not the one you imagined you were making.
That's like someone seeing their pay for the first and releasing the difference between gross pay and net pay. They think they are getting X but really they are getting Y. Both amounts of which are > 0 and so they are still making money. Like you still are.
Then if you ultimately sell both houses, you can do a 1031 exchange and invest all of the proceeds into a new house — and defer the cap gains until you sell that.
These problems aren’t that hard unless you look at them from a single direction.