I don't quite know the extended lore, but I'm pretty sure that it's established that the reason why we don't see modern weapons being used in the series is because magic and Muggle technology just don't agree somehow. Despite this, Arthur Weasley has a flying car that can turn invisible and drive itself. Is this a discrepancy? And if so, is it explained?