Ford Focus Transmission

I’m sure this has been asked many times but I need some advice. I have a 2015 Ford Focus with 150k miles. Like everyone else, transmission is slipping. My mechanic said it was $2500 to do TCM replacement. Just want anyone’s opinion that has a better idea of how affective these replacements are. Should I try the replacement or just sell the car and buy a different car? Not sure if it is even worth it to try getting issue fixed. I need this car to last me another year if possible but don’t want to waste more money on it if it isn’t worth it.