When you ‘bounce’, you merge all the tracks into one file, like an mp3, that can be played as one stereo file.
You can still record melodica first, and make an ‘eleastic’ midi click track which fits with the rubato of the melodica playing. Then use that click track to record the piano part afterwards.