Port `eq` kernel to structured kernels. (#60177)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60177
Tracking issue: #55070
Test Plan: Imported from OSS
Reviewed By: soulitzer
Differential Revision: D29509871
Pulled By: ezyang
fbshipit-source-id: ad81bb49c46edc81c705d12108b98c5ffaaddf92