Remove self checking in collision detection

std::unique_ptr is used, no need to compare this with incoming pointer.