difference between できることなら and できるものなら


is there some difference? is it somehow connected with the difference of もの
and こと?




They are practically interchangeable when used as an adverbial phrase meaning
“if possible” before a clause that expresses a desire that is difficult or
impossible to realize with 〜たい.

> できることならやりたい。  
>  できるものならやりたい。  
>  I would like to do it if I could (but I can’t).

The latter is less ambiguous, and therefore probably preferred as a means to
express impossibility, because できること may also be understood as referring to a
specific thing (こと) one is capable of doing.

> できることならやりたい。  
>  I would like to do it if it’s something I can do (within my capabilities).

Only できるもの can be used in a rhetorical command.

> できるものならやってみろ。  
>  Go ahead and do it if you can.

The speaker is challenging the listener to do whatever is referred to,
thinking they will not be able to do it whether for a lack of skills or
courage.

In contrast, the following would be understood literally.

> できることならやってみろ。  
>  Do it if it’s something you can do (within your capabilities).

