You may have installed the other one as a snap package, as Ubuntu’s new software store defaults to snap packages.
Open a terminal and enter the command
sudo snap remove teams
There are three packages for Teams in the snap store. If the first command did not work, you may also try the following commands one by one.
sudo snap remove teams-insiders
sudo snap remove teams-for-linux