I tried to use ‘magnet’ button at the top and object indeed starts moving along the other surface, but it doesn’t change it’s rotation, so that it’s surface would be parallel surface of another object. Like that:
you need to enable rotation alignment -