If you’ve got a JSONB column or a nullable array column, using nil is going to cause the usual SQL NULL behaviors while using [] will not.
If you’ve got a JSONB column or a nullable array column, using nil is going to cause the usual SQL NULL behaviors while using [] will not.