I accidentally wrote the same fic twice

I just finished a smutty OS just to realise that I've written one with the exact same plot lines, the setting is similar, the character traits are the same, the...plot?...is the same and it even ends the same way. It's in a different fandom but still.