Lemme explain it somewhat easier:
Reason for pvp’iv ranking is the total stat product (atk x def x hp). And obviously outside pvp you get higher stat product by higher iv’s cuz they are stronger, easy.
However with pvp (GL and UL) there is 1 factor which ML and PVE dont have, the cp cap.
Normally i assume you value your atk over the other stats right? It is more important after all. Thing is, niantic is also aware of that fact, so cp already calculates atk much more heavily then def and hp.
This means atk reaches the cap much quicker then def and hp does. Same exact reason why the meta almost always favors bulky pokemon.
So having atk iv as low as possible with hp/def iv as high as possible while still getting as close as possible to the cap means you maximise your stat product
Ok lets complicate stuff again
You just checked, hey you have 2 #1 pvp iv’s amazing, much rarer then hundos even gz gz. But umm they arent nessecarily the best rn, they are the best generally though.
But why?
Well there are 2 reasons: cmp and breakpoints
Cmp: this stands for charge move priority.
U probably think now since dps isnt a thing in pvp and its just about tdo that atk is now equal to the others? Umm no, still not😅.
Atk has another advantage but for pvp, which is cmp.
What it means is if you and your opponent use your charge move at the same turn then the mon with the higher attack gets to attack first.
This is most important on a mirror match cuz they already have the same base atk so ivs will always be the tiebreaker.
For that reason if you have a popular lead (i assume most do) you might wanna consider a weaker stat product for higher odds of cmp
Breakpoints: this is the hardest one and differs in every matchup with every mon and every iv and every moveset. However i can explain the basic idea:
When your atk stat reaches a certain threshold over your opponents defence stat your move does more damage while several other power ups will not. This isnt so important on charge moves as it is on fast moves cuz the higher the damage the more fluidly it goes.
Random example: (not the math or any of the stats , just the concept): your trevenant fight a medicham with 5/15/15 iv and has a def of 140,3. Then your trevenant either deals 7 damage per shadow claw or 8 to the hp of his medicham. The medicham has 142 hp, so if u wanted to farm it down assuming u can it takes 21 shadow claws at the first breakpoint or 18 at the second, which is a dam big breakpoint since its also scratching the edge of both sides. However if we assume the same lv50 medicham has 140 hp instead of 142 which happens if we make it 5/15/12 instead of 5/15/15 then you also hit a breakpoint cuz a 7 damage sc trevenant now only needs 20 sc instead of 21 to win. But about the atk breakpoint needed to go to 8 hp damage your atk has to go over 131 while 131 or less does 7. But getting from 125,9 to at least 131,31 will usually be far too much of an expense of your stat product vs only 1 mon, but lowering medicham 1 hp in favor of better atk may be a breakpoint thats actually worth it, and i say may cuz this is just 1 example out of an unlimited range of possibilities
Understanding the concept may already help you to pick the right choices, and the deep dive charts may do even easier so check those out.
Hope this helps guys, gl on your battles