Ṣalāt al-Jumuʿah is optional when ʿĪd falls on a Friday
I witnessed Muʿāwiyah b. Abū Sufyān asking Zayd b. Arqam: Did you offer along with the Messenger of Allah ﷺ the Friday and 'Īd prayers happening on the same day? He said: Yes. He asked: How did he do it? He replied: He offered the 'Īd prayer and granted a concession ˹to the people˺ to offer the Friday prayer, and said: "If anyone wants to offer it, he may offer."
شَهِدْتُ مُعَاوِيَةَ بْنَ أَبِي سُفْيَانَ وَهُوَ يَسْأَلُ زَيْدَ بْنَ أَرْقَمَ قَالَ أَشَهِدْتَ مَعَ رَسُولِ اللَّهِ ﷺ عِيدَيْنِ اجْتَمَعَا فِي يَوْمٍ؟ قَالَ: نَعَمْ قَالَ فَكَيْفَ صَنَعَ؟ قَالَ: صَلَّى الْعِيدَ ثُمَّ رَخَّصَ فِي الْجُمُعَةِ فَقَالَ «مَنْ شَاءَ أَنْ يُصَلِّيَ فَلْيُصَلِّ۔»