Similar Items: Transformer‐Based Fusion for Joint Routing and Resource Allocation in the Internet of Things