If hitting "cancel" in the "Activities" tap isn't working, you can try the below option. It basically overwrites the previous one with another buy using the same "nonce", which is like a file name:
1. On Metamask, click on the circle icon on the top right, and go to Settings > Advanced
2. Scroll down to find "Advanced gas control" and "Customize transaction nonce". and make sure they are both ON