The animated movies take some liberties. In the comics, Trigon and Darkseid are about equal.
Trigon in the comics is always mentioned in the magical aspects of being absolute power and evil
While Darkseid is typically a Superman villain known for being power absolute.
Here’s something you have to know about both characters. Trigon is weaker on Earth. He’s a ruler of Hell and his power is so strong that he’s still ranked as being on the same level as the Spectre. (The Spectre is a being powered by what would be considered the Christian God in the comics. Aka the Presence.) His weakness happens to be his daughter Raven. They’re sort of connected.
Darkseid always fights with avatars that are all about as strong as Superman at his peak. Yet they’re literally nothing to his to actual power. He’s so strong that merely stepping into the universe with his true form would destroy it completely. Which isn’t what he wants. He also wields the Anti-Life equation which give rise to his Omega beams. The Anti-Life equation is something that was formed by the birth of the Anti-Matter universe and enabled the Anti-Monitor to do stuff like destroy a multivers by absorbing its energy. Along with his armies etc.
They have different kinds of power. So its hard to say who would win outright. But in truth I would say Trigon. Him being mentioned on the same tier of power as the Spectre, someone who knows the power of the Presence and yet has absolutely no fear of him, Someone who will put the Stranger in his place?
Like, Darkseid is a strong New God. But he’s no Presence or Stranger. Nor do I believe he could beat the Spectre.