Overwrite existing file automatically when uploading same filename

When you upload an image called photo.jpg and there is already an existent photo.jpg, Directus preserves both files, each with a different filename_disk.
In my current project this default behaviour is not ideal and I would need to overwrite every image that is uploaded with the same filename_download, preserving as well the same filename_disk.
Sometimes we could have be 500 new images (to replace the old ones), and I cannot manually replace each one through the replace function.
I first tried to create a Flow, but flows don’t trigger on system collections like ‘directus_files’.
AI told me my best option is to create an extension hook, but none of the test I’ve done with AI worked.
So I’m basically clueless and appreciate any help.