If you look at the whole clip, instead of the shortened one, you can clearly see that Trey falls after contact with the Bills lineman, lands on his broken wrist, then pulls his legs up to try to avoid contact with Allen.
It's literally the opposite of a dirty play. If I thought it was, there's no shot I would defend it.