If you put a slur across two different notes it is played as a slur. However, if you put a slur across two notes which are exactly the same pitch, the slur becomes a tie. The only difference between a slur and a tie is the pitch of the notes.
However, if a slur is positioned over two notes which are exactly the same in pitch but each note also has a staccato dot or a _ (tenuto) mark, then the slur is NOT a tie. Adding the staccato dots means the notes should be played detached, ie. not quite as short as regular staccato. Adding tenuto marks to the two notes means that both notes are detached but with a very, very slight, subtle emphasis on each note.