When using either UICollectionViewDiffableDataSource or UITableViewDiffableDataSource, what is the "correct/safe" way to get the section identifier from an index path?
snapshot().sectionIdentifiers[indexPath.section]
or
guard let item = itemIdentifier(for: indexPath) else { return }
snapshot().sectionIdentifier(containingItem: item)
?