While you can create the comparison logic in Mendix, you can also call the "accountability check" capabilities of Teamcenter. I see in the documentation many API like this one
StructureManagement-2016-05-StructureVerification/accountabilityCheck2
I have no example of these features implemented in Mendix, but it's doable.
If you decide to implement such an API, here are a few advises
I wrote this article a few years ago explaining how to show differences between two different pieces of text. It may be what you need here.
https://medium.com/mendix/making-a-difference-with-mendix-33e581adced7
I hope it helps. Good luck!