Can you cast darkness with a higher-level slot to end a spell of 3rd level or higher that creates light?

No. The darkness spell can dispel only a light-creating spell of 2nd level or lower, no matter what spell slot is used for darkness. Similarly, the daylight spell can dispel only a darkness-creating spell of 3rd level or lower, regardless of the spell slot used.