GMS1-style, picks depth based on object_get_depth with depths set in project.
This is just a instance_destroy(inst, false)
from a time before GM added
an optional argument to instance_destroy
.
Returns whether an instance belongs to the given object type.
This is equivalent to
object_index == obj || object_is_ancestor(object_index, obj)