I don't know of a way to really do that in midi. But you could render the tracks to audio and use a 3rd party program like VocAlign or ReVoice,
https://www.synchroarts.com/, I'm sure there are others I just don't know of them. Those programs do just that, sync up one audio track to another based off the timing of the other.