Since you are selling the first one and the second will be an investment there would generally be no tax issues, or only short term issues so using the offset money may be fine.
But things often change and you may end up keeping the 1st one. So you may want to consider some strategies...