Similarity of competitors has been proposed to facilitate coexistence of species because it slows down competitive exclusion, thus making it easier for equalizing mechanisms to maintain diverse communities. On the other hand, previous studies suggest that chaotic ecosystems can have a higher biodiversity. Here, we link these two previously unrelated findings, by analysing the dynamics of food web models. We show that near-neutrality of competition of prey, in the presence of predators, increases the chance of developing chaotic dynamics. Moreover, we confirm that chaotic dynamics correlate with a higher biodiversity.