AかBのどっちか一つ書くときどっちが好み?

void DoSomething1(int a, int b)
{
...
if(a==b) DoSomething2(a); // A
if(a==b) DoSomething2(b); // B
...
}