The USSR was not willing to screw around with the US in the Western Hemisphere, and with regards to Panama, Noriega was anti Communist and the combat part of the invasion lasted about a day, there isn't time for the USSR to intervene before the US is entrenched. And afterwards by some polls 92% of Panamanians were in favor of the US invading, and 76% wished the US had invaded earlier, even Human Rights Watch has a majority of Panamanians approving, so the USSR won't exactly get any support. So for Panama to go USSR, you need the US to invade to get rid of someone besides Noriega, or make him genuinely popular, or the US to screw up the invasion so badly Panama is willing to go to the USSR
Egypt and Suez, in 1989 when Panama was invaded, Egypt was a Major Non-NATO ally of the US, and was getting ~$1.7 Billion in US aid a year, as a condition of getting the Sinai, thus Suez back. Egypt would need to do a complete political 180, and risk losing the Sinai again