Elixir v1.17 now type checks the comparison operators and will warn whenever it detects comparisons with structs or comparisons across disjoint types, which can be sources of bugs (addressing two cases from the linked article).
Check the screenshots below: