Yes it’s illegal but because the car dashboard usually is placed in a better position than your hand/phone and also because you don’t chat with the car :) but in the end yes it’s a bit pointless ban the use of a phone and allow a “big phone built in the car”.