At risk of being pedantic:
-
mp4 and m4a are containers. They are the "buckets" audio sits in. You can't transcode a file to mp4.
-
flac is the actual compression algorithm that sits in a bucket. Other 'codecs' include mp3, aac, alac, opus, and such
To save you a bunch of rambling:
You want to convert the flac audio to opus. Its the most efficient codec. 256K is basically indistinguishable, 384K is literally indistinguishable.
And you want the container to be a .webm file, because everything supports that. To reiterate, opus inside webm.