Both Lieutenant Worf (Michael Dorn) and Captain James T Kirk (William Shatner) were imprisoned for their prejudice but Star Trek: The Next Generation failed to give Worf a Kirk-style redemptive moment. In Star Trek VI: The Undiscovered Country, Kirk's hatred of the Klingons for the murder of his son David Marcus (Merritt Butrick) was weaponized as part of a vast Starfleet-Klingon conspiracy. Framed for the murder of Chancellor Gorkon (David Warner), Kirk was forced to confront his prejudice and unmask a conspiracy to sabotage potential peace with the Klingons and the Federation.
Decades later, the young Worf was orphaned when his parents were killed in the devastating Khitomer Massacre, orchestrated by the Romulan Star Empire. The Khitomer Massacre was the seismic event that underpinned Worf's Klingon problems in Star Trek: TNG. It also gave Worf a lifelong hatred of the Romulans, which often got in the way of his duties as a Starfleet officer. While Star Trek: Picard revealed a more peaceful and centered Worf, TNG never truly resolved his prejudice against the Romulans in a meaningful way. This is despite the TNG 2-parter "Birthright", giving Worf the chance to abandon his prejudice, like Kirk before him.