He had less movement this fight. He was more flat-footed, more one-dimensional... just looking for that KO.
And made the same mistake as previous fight.
We're going to disagree here
This is how Cody always fights
Cody fights outside until he seems an opportunity to plant his feet and throw, often as a result of an opening for a counter created by his opponent coming forward. Then he lands, then he blitzes forward with a combination. His style is pretty straight forward
Against Cruz he fought someone who is uncomfortable leading, any by that I mean leading in any committal way not just leading by being the first to move. If you watch the fight, nearly every time he landed anything of significance it was off of a counter, and he spent the entire fight trying to bait Cruz into coming first in the middle of the cage
the problem wasn't that he fought differently against TJ, it was that he fought the same against a different type of opponent. TJ thrives on moving forward, and his entire style is based around forcing the opponent to try to counter him - which is just to say he's much better equipped to do it than Cruz is, he has a better arsenal of feints an entries suited to that purpose. What TJ does better than anyone else is that when he exchanges he forces it to happen on his terms based on where his feet are positioned relative to the other guy. Cody, in contrast, is used to being faster and quicker in the pocket often will set his feet initially and not adjust based on where the opponent is if he's committed to throwing, because against 99% of fighters he'll beat them to the punch. And if he does adjust, it's BEFORE the exchange where as TJ will adjust in the exchange.
There's also the factor that Cruz is just really sloppy when it comes to throwing hooks and for a guy like Cody whose style is built around exchanging his righthook for yours that's a godsend. Cody even noted that in the FullBlast where Cruz fought Uriah Faber, but it's plain to see Cruz throws hooks from his waist because he wants to mask them, but that doesn't matter against a guy like Cody who is just going to plant and counter whatever you throw. Even the rare times Cruz beat Cody to the punch, his slapping hooks did nothing to stop the return fire.
Being emotional likely had something to do with Cody's loss, but it shouldn't be the dominant narrative. The real story, which was the common thought coming in, is that TJ is just such a diverse fighter with a large toolbox that the longer any give meeting between the two went on the more likely he would be to find something that worked. And he did in the second round of the first fight, and that continued into the second bout.
TlDR, Cody fought the same way he always does, and that's why he lost.
The "he was emotional" storyline is overrated - he was emotional, but in either fight he looked good fotowork head movement and technique wise (relative to himself) until he got cracked.