Entaglement and statistics in Hong-Ou-Mandel interferometry