Which is more efficient, raycast, get distance to x, or using collision?

Bumping this because I think it’s pretty handy info to have!