2 deleted 2 characters in body
source | link

Scala, 4543 bytes

def f(a:Int,b:Int)=a+b==5||=a+b==5|(a-b).abs==5||a==babs==5|a==b

Try it online!

Scala, 45 bytes

def f(a:Int,b:Int)=a+b==5||(a-b).abs==5||a==b

Try it online!

Scala, 43 bytes

def f(a:Int,b:Int)=a+b==5|(a-b).abs==5|a==b

Try it online!

1
source | link

Scala, 45 bytes

def f(a:Int,b:Int)=a+b==5||(a-b).abs==5||a==b

Try it online!