Oh geez.
I think rather than Handbrake, - if the bulk of the movie is in one .m2ts file, just run that through mkvmerge. If you’re gonna re-encode, re-encode the big file, not the AVCHD - because re-encoding a re-encode is absolutely going to look worse.