Now, your bullet spawns right at the player. Making it spawn a bit above the player makes it not hit the player, and you don't need to mess with filters. Otherwise you would need to check what the bullet collided with, and ignore the collision when it's with the player.

Once that's fixed, you can just check if #collisions == 0 and if not, remove the bullet, as that means it hit something.