It’s not really about “attracting” asteroids, it’s more about their orbital trajectory happening to intersect the Earth’s at the right time. I think the Moon’s gravity is about as likely to redirect an asteroid towards the Earth as it is away, but the Moon also physically intercepts some asteroids, so the net effect would be a slight decrease in Earthly asteroid impacts.
It’s not really about “attracting” asteroids, it’s more about their orbital trajectory happening to intersect the Earth’s at the right time. I think the Moon’s gravity is about as likely to redirect an asteroid towards the Earth as it is away, but the Moon also physically intercepts some asteroids, so the net effect would be a slight decrease in Earthly asteroid impacts.