I'd suggest that's a code violation (*). Many plug-in EVSEs use a 14-50P because it's more common, but it's inefficient as it requires a 14-50R which requires a neutral. If you get one that uses a 6-50P, then you don't have that problem.
But when hardwired, no neutral required.
Cheers, Wayne
(*) Edit: best I can come up with is 406.8 on non-interchangeability. So if there's a 120/240V 14-50R elsewhere (e.g. for a range), it would be a 406.8 violation to use a 14-50R for 240V only. If the 240V only 14-50R is the only 14-50R on the premises, maybe it's not a code violation, just a terrible idea.