Domain do not affect SEO directly. But it affects CTR indirectly, thus it affects the ranking and traffic. For example, if you are searching for a cleaner, and if you see a . my domain, u won't click that website right because you aren't in Malaysia.