To poke at things, that counting should be completed as quickly and accurately as possible is generally accepted. The rub there is that the comparative weighing of the two concerns varies significantly from state to state, the specific methods used can vary locally, the relevant equipment availability and quantity can vary immensely, the rules for a recount vary...
Just to poke at an example to highlight things a bit - in 2018, Florida, recounts were done. In some counties, the system and equipment in place allowed for it to be done very quickly and supposedly accurately, especially when dealing with systems that created and saved a digital image of each vote the first time that they were fed through, allowing very fast reprocessing. In... Broward County, IIRC, they had to feed ballots through two machines by hand. One of the machines broke down completely and the other was having distinct problems. After 6 days of doing their best, day and night, to get the ballots recounted for the recount, they missed the deadline to submit the vote count by 2 minutes and had their recount numbers rejected.
There's lots that is wrong with that picture, really, but it's the system that we've got now.
Also of note - California has tended to take weeks to count votes there, for a variety of reasons. One example of the complaints that have been made is that there were lots and lots and lots of people with the same first name and last names (Joe Smith, for example) who lived in the same areas and that needed to be individually verified, which could take from a couple minutes to a half hour each.