Sorry for brevity, using phone.
If you set both SSIDs to "Banana", then the 2.4 only devices will automatically join the 2.4 banana only, likewise with 5ghz only devices, will only join the 5ghz version of Banana. They will be incapable of joining the wrong one, and modern 5ghz devices will...