pulled the TCM from my 08 Mazda 5, wanted to get a used one from ebay, seems there're a lot more TCM for M3 than for M5. wondering if they're compatible. I think the two models have the same engine/AT ?

my TCM is L39C 18 9E1B
I think the M3 TCM starts with L34T 18 9 *