The candidates took the stage ahead of the 2024 election for the first time after Joe Biden dropped out of the race