There is absolutely nothing hasattr does that you cannot achieve with other means in a more robust way and with minimal impact.  It’s not like ditching goto that requires a completely different approach to programming.