Your flight may arrive into and depart from the same physical terminal, but the YYZ-ATL segment will depart from the transborder area. In order to enter that, you must proceed through Preclearance at YYZ.
For your purposes, there is no logistical way to clear some passengers at YYZ and some at ATL.