How do I properly compare a string date with a
datetimeobject in Python?
You can't; that's what the error is telling you.
Instead, convert the strings to datetime. See How do I parse an ISO 8601-formatted date and time? For non-ISO formats, see Convert string "Jun 1 2005 1:33PM" into datetime